Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Flash CS3 Form Application doesn't support FlashVars?

0 views
Skip to first unread message

Ivan Stimac

unread,
Mar 9, 2008, 6:27:18 AM3/9/08
to
Anyone try load FlashVars in Form Application? It doesn't work. Why?
In HTML object tag i add:
[b]<param name="FlashVars" value="varvalue=myValue" />
<embed src="flash/student.swf" FlashVars="varvalue=myValue" ...[/b]

And on frame on first form (named: application) i use code:

[b]myTxt.text = _root.varvalue+ "-" + _level0.varvalue+ "-" + varvalue;[/b]

And I got: undefined-endefined-undefined. Why nothnig of this don't work?

[b]But when I create normal Flash Project, it works fine! ????[/b]


--------------------------------------------------------------------------------
---------
Sorry for my english. I dont know it so good. THANKS!

DMennenoh **AdobeCommunityExpert**

unread,
Mar 9, 2008, 8:45:24 AM3/9/08
to
If you're publishing for AS3 then it doesn't work the same. Also, if your
code is on the main timeline, then: _root.varvalue+ "-" + _level0.varvalue+
"-" + varvalue - you are tracing the same variable. There's no need to put
anything more than just varvalue.
Anyway, see Help for the LoaderInfo class. I think the parameters property
is what you're after.


--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Ivan Stimac

unread,
Mar 9, 2008, 11:04:28 AM3/9/08
to
Thaks DMennenoh,
I know it should be the same variable, but I think maybe some of this is wrong
or somethnig...

I publish for AS2 and if i choose ASC i got message: Screen-based documents
must target ActionScript 2.0.

Also I found this articile:
TITLE: How to get FLASHVARS to work with a Forms application
URL: http://flashmove.com/forum/showthread.php?t=14154
But this isn't good solution for me...

Is this some bug in Flash or I need to use some other way when I create Flash
From Application, where Flash Form Application declare this variables from
FlashVars?

DMennenoh **AdobeCommunityExpert**

unread,
Mar 9, 2008, 12:43:53 PM3/9/08
to
>> I know it should be the same variable, but I think maybe some of this is
>> wrong or somethnig...

The thing is you're tracing the _same_ variable... If anything is wrong
tracing the same thing, three different ways, doesn't matter... See what I
mean?

Sorry, but I have never used the screens feature, or the forms thing. I make
any forms from scratch, using the plain as2 file. Why is the article not a
good solution? By the title it sounds perfect.

Ivan Stimac

unread,
Mar 9, 2008, 2:05:26 PM3/9/08
to
This is good solution if there is no better (createing empty swf and loading
screen swf into this one, must be better solution).
I can't understand why it is not possible to use FlashVars in way we can use
them in normal Flash Project, and there is nothing about this in Flash
documentation, so this should be some bug, I think...

Ivan Stimac

unread,
Mar 9, 2008, 6:18:46 PM3/9/08
to
I found problem. Problem is in javascript code, it also must be edited:

AC_FL_RunContent(
'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=9,0,28,0','width','762','height','502','class','flashBdr','src','flash/s
tudent?userID=9','quality','high','pluginspage','http://www.adobe.com/shockwave/
download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie',[b]'mymovie?varval
ue=somevalue'[/b] ); //end AC

and in object tag i used this, but it works also with FlashVars:
<param name="movie" value="mymovie.swf?varvalue=somevalue" />
<embed src="mymovie.swf?varvalue=somevalue"...

I don't know why this is not in flash documentation... But now works perfect.

DMennenoh **AdobeCommunityExpert**

unread,
Mar 10, 2008, 8:36:50 AM3/10/08
to
Nie job, glad you figured it out.
0 new messages