简体   繁体   中英

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

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.

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM