AS3 Error #2060 Security sandbox conflict Externalinterface resolution method

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.