调用闪存ExternalInterface的使用JavaScript [英] calling a Flash ExternalInterface with JavaScript

查看:115
本文介绍了调用闪存ExternalInterface的使用JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调用与ExternalInterface的在Fl​​ash SWF声明的函数,使用JavaScript。它的工作一次,但突然,它停止工作。

I'm trying to call a function declared with ExternalInterface in a Flash swf, using JavaScript. It worked once, but all of a sudden, it stopped working.

我有Flash播放器的调试版本,但会出现在Flash中没有错误。甚至没有一个安全沙箱错误什么的。我得到的唯一错误是在JavaScript中出现以下错误错误:在Actionscript中的错误。使用try / catch块,以寻找错误。

I have a debug version of the Flash Player, but no errors occur in Flash. Not even a "Security Sandbox Error" or something. The only error I get is the following error in JavaScript Error: Error in Actionscript. Use a try/catch block to find error.

我使用AS3,出口为Flash Player 10和测试在Firefox 3/4的Safari在Mac上。

I'm using AS3, exporting for Flash Player 10 and testing on Firefox 3/Safari 4, on a Mac.

任何援助将大大AP preciated。

Any assistance would be greatly appreciated.

推荐答案

查看<一个href="http://livedocs.adobe.com/flex/3/langref/flash/external/ExternalInterface.html#marshallExceptions">ExternalInterface.marshallExceptions.它应该让你看到有关错误的更多详细信息。

Check out ExternalInterface.marshallExceptions. It should allow you to see more details about the error.

这篇关于调用闪存ExternalInterface的使用JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆