Error 2060 occured in Chrome and FireFox but not IE when calling ExternalInterface.addCallBack()

848 views Asked by At

I search almost the internet but not find the solution.

I just use ExternalInterface.addCallBack() in AS3, and it throws exception when I loaded this swf by Chrome or FireFox. But it's ok with IE.

The code I used( the last example in this AS3 reference page )

I modified the allowScriptAccess to "always" and added Security.allowDomain( "*" )

Browsers' version:

IE: 8.0.6001.18702CO

Chrome: 27.0.1453.94 m

FireFox: 7.0.1

How to fix this iusse?

Thank you for your time.

1

There are 1 answers

0
Mike Morearty On

A guess: Are you hitting a file: URL from your browser? Instead, use an http: URL (which of course means either running an HTTP server locally, or copying the files to a remote HTTP server).