View Full Version : using parameters given bij DreamWeaver
leejoow
August 9th, 2003, 01:55 PM
hi!
I have a (probably) simple question for you guys :smirk:
In dreamweaver you can pass parameters to a flash-object. Is there a possibility to use these in ActionScript? I can't figure it out...
if someone has an answer for me... you're more then welcome :)
*ps. sorry for my bad English*
Johnny64
August 9th, 2003, 02:16 PM
Hoi
well....
lets say you have a movie with framelabels "label1", "label2", "label3".....
and you what to use DW to tell Flash to which label is should goto!
so you make a parameter called DWvar with a value of "label2"
then in our flash movie you put this script on the first frame
gotoAndPlay(_root.DWvar)
now when the movie loads the variable CWver is send to the root of the movie!!
The ActionSrcipt find the the variable DWvar throuw the root.
And the is all thats to it ;)
And your engish is fine;}
leejoow
August 9th, 2003, 02:40 PM
thnx... but it still isn't working :*(
First I entered the following parameters in DW:
name=test value=blaat
Next I created a textbox (with var set to "rara") and I entered the following code in AS:
rara = _root.test;
nothing comes up in the textbox... what is it that I overlook?
kode
August 9th, 2003, 02:47 PM
<OBJECT blah blah blah>
<PARAM name="movie" value="movie.swf?var1=value1&var2=value2">
<PARAM name="flashvars" value="var1=value1&var2=value2">
<EMBED src="movie.swf?var1=value1&var2=value2" blah blah blah></EMBED>
</OBJECT>
http://www.macromedia.com/support/flash/ts/documents/flashvars.htm
??
Johnny64
August 9th, 2003, 03:32 PM
Sorry:-\
i forgot the about that :blush:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.