AS3 Error #2060 security sandbox conflict Externalinterface
Error Case:
Flex program Error #2060: Security sandbox conflict: Externalinterface caller http://file.51yuncai.com/12/flash/duiduipeng.swf cannot
Access to http://t.51yuncai.com/product_pk_list.php?type_id=3&product_id=1.
Workaround:
1. label form (i.e. SWF loaded by tag):
<object type= "application/ X-shockwave-flash "Data="/player/loader.swf
width= "100%" height= "100%" id= "1g1gplayer" bgcolor= "#333333" "
<param name= "movie" value= "/player/loader.swf"/>
<param name= "allowFullScreen" value= "true"/>
<param name= "allowscriptaccess" value = "Always"/
</object>
Add one line of code: <param name= "allowscriptaccess" value = "Always"/>
2. Scripting form (i.e., loading SWF in the form of script (such as JS) language):
var so = new SWFObject ("test.swf", "T1", "a", "the", "9", "#000000");
So.addparam ("Quality", "high");
So.addparam ("name", "T1");
So.addparam ("id", "T1");
So.addparam ("Algin", "Middle");
So.addparam ("allowScriptAccess", "always");
That is, add one line of code: So.addparam ("allowscriptaccess", "always");
3. The installed Flashplayer version is inconsistent, please uninstall and reinstall Flashplayer.