with the following code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="thisISparta">
<param name="flashVars" value="asdf=GNU,is,not,unix" />
<param name="movie" value="thisIsSparta.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
</object>
How can i get the value of flash vars using Flex (flash builder 4.6) and without using swfObject.js?
With regards,
Mike
You can read the flashVars object using actionscript code like so:
In your main class:
Or anywhere in your code (if your application is a Flex one)P
The parameters property is an Object of key-value pairs.