Actionscript から Application.application.parameters クラスが使える。
まず HTML
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="myflash" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="myflash.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#869ca7" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="flashvars" value='my_param=hello'> <embed src="myflash.swf?my_param=hello" quality="high" bgcolor="#869ca7" flashvars='my_param=hello' width="100%" height="100%" name="myflash" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed> </object>
このコードからパラメータ my_param を取得するスクリプトが以下
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initVars()"> <mx:Script> <![CDATA[ import mx.controls.Alert; [Bindable] private var param:String; private function initVars():void { Alert.show(Application.application.parameters.my_param); } ]]> </mx:Script>