首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

js 调用flex 步骤

2012-09-22 
js 调用flex 方法js----------------------------------------------------script languageJavaScript

js 调用flex 方法

js----------------------------------------------------<script language="JavaScript">function thisMovie(movieName) {         if (navigator.appName.indexOf("Microsoft") != -1) {             return window[movieName];         } else {             return document[movieName];       }}function javaScript(){thisMovie("Dome1").javaScript("123");}</script></head><body><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"             id="Dome1" width="100%" height="500"             codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">         <param name="movie" value="Dome2.swf" />         <param name="quality" value="high" />         <param name="bgcolor" value="#869ca7" />         <param name="menu" value="false" />         <param name="allowScriptAccess" value="sameDomain" />         <embed src="Dome2.swf" quality="high" bgcolor="#869ca7"             width="100%" height="100%" name="Dome1" align="middle"             play="true" loop="false" quality="high" allowScriptAccess="sameDomain"             type="application/x-shockwave-flash"             pluginspage="http://www.macromedia.com/go/getflashplayer">         </embed>     </object>flex-----------------------------flex 初始化的时候要调用flex 方法               public function init():void{if(ExternalInterface.available){ExternalInterface.addCallback("javaScript",loadUserMessage);}}public function loadUserMessage(value:String):String{Alert.show("js调用了我"+value,"js调用测试");return value;} 
?

热点排行