我正在尝试从Javascript调用Actionscript函数,但在Internet Explorer中遇到了问题。我正在使用Mootools 1.2.1中的Swiff.remote来调用Actionscript函数,例:
Swiff.remote(playSwf.toElement(), 'sendResult', result, plays, name);
在FireFox、Safari和Opera中,这一切都运行正常,但在Internet Explorer 6和7中出现了“未指定”错误。 我已经尝试使用标准方法:
window['flash'].sendResult(result, plays, name);
无济于事。
感谢任何帮助。 马克
window
对象来引用 Flash,可以通过 ID 直接引用:http://work.arounds.org/calling-flash-functions-javascript/ - meder omuraliev