-
I am wondering if you can pass variables through the "querystring" that embeds a SWF. If so, how do you get at this variable inside the movie?
Thanks,
John
-
movie.swf?var=somthing
That does it. If var was the variable for a textbox, that text box would then say something (or whatever is after the = ). You can also use multiple vars like so:
movie.swf?var=somthing&var2=something else
And they don't have to be var. They can be any variable at all.
-
How are these variables referenced in Actionscript in the SWF?
Thx for the help!
Stace
-
They're referenced exactly the way they're called in the HTML, and they live in the _root timeline. Using the example given by NerdInside, you can access the variables as _root.var and _root.var.
-Dan
-
So if I've got this within the OBJECT tag:
< PARAM NAME="uuid" VALUE="26e334c1-77ea-43ce-aac3-d652cc8ca368" >
I can reference this by saying
_root.uuid ?
Thanks!
-
No, I don't think you can do that. But one of the PARAMS will = the movie's name.swf. You can attach the variables there like NerdInside did.
-Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|