Trying to get variables into flash from the browser!
Ever wondered how to get variables from an html page to a flash element?
Well, it’s quite easy using the following actionscript 2 example:
I use javascript to embed my flash elements:
_
<embed src="somefilename.swf?varname=varvalue&vartwo=var2value" width="550" height="400"></embed>_
Now in Flash I can just call:
1 2 _root.varname and it will give us `varvalue` _root.vartwo will give us `var2value` Wasn’t that easy?