1 //一部分 js调用as 函数 2 flash: 3 function callMe(name:String):String 4 { return "busy signal";} 5 ExternalInterface.addCallback("myFunction", callMe); 6 7 js: 8 <script language="JavaScript"> // callResult gets the value "busy signal" 9 var callResult = flashObject.myFunction("my name");</script> 10 ... 11 <object id="flashObject"...> ... 12 <embed name="flashObject".../> 13 </object>