Actionscript 3 ExternalInterface,将变量传递给javascript?

时间:2010-01-18 14:06:36

标签: actionscript-3 externalinterface

如何使用ExternalInterface将变量传递给javascript函数?

1 个答案:

答案 0 :(得分:13)

请参阅doc for external interface call function here

例:

import flash.external.ExternalInterface;
if (ExternalInterface.available){
    ExternalInterface.call("myJavascriptFunction", argument1, .., argumentN);
}