Using flashvars to pass parameter into flash file
Posted on: July 10th, 2009
The following little example shows how to pass values into a flash application.
The xhtml code looks like this:
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=6,0,40,0">
<param name="src" value="flash.swf" />
<embed width="580" height="650" src="flash.swf" flashvars="para1=value1¶2=value2">
</embed>
</object>
This is how to use the passed values in the flash application:
y = stage.loaderInfo.parameters.para2;
Posted in Flash | Trackback Url








5 Responses to “Using flashvars to pass parameter into flash file”
1
admin
July 19th, 2009
Permalink this comment
thx..
2
Bodyc
July 28th, 2009
Permalink this comment
Hi, Amazing! Not clear for me, how offen you updating your www.simra.ch. Bodyc
3
admin
July 28th, 2009
Permalink this comment
This site is still under construction so im updating quite a lot. cheers!
4
Tania
August 8th, 2009
Permalink this comment
Hi, Interesting, I`ll quote it on my site later.
1 Trackbacks/Pingbacks
Leave a reply