2 Replies Latest reply on Jan 28, 2013 7:45 PM by joe_valenzuela

    LOCAL_WITH_NETWORK sandbox and SecurityError: Error #2121: BitmapData.draw

    joe_valenzuela

      We have an application we run in a localWithNetwork security sandbox.  This application loads many assets from an off-site web server.  In spite of a very permissive crossdomain.xml, swfs downloaded from site give a 2121 error when we convert them to bitmaps at runtime.

       

        <?xml version="1.0" ?>

        <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

        <cross-domain-policy>

          <allow-access-from domain="*" />

          <site-control permitted-cross-domain-policies="all"/>

        </cross-domain-policy>

       

       

      Now, I understand why this restriction with BitmapData.Draw exists in general, and from what I've read in other discussion threads the general solution is to allow less restrictive access via crossdomain.xml.  This is the most permissive I know how to make it, although the documentation on the subject is not the most concise.  Are there details I'm missing here?

       

      For the moment we're just running this as LOCAL_TRUSTED, but this requires folks to be setup with the debug plugin which is a maintenance problem.

       

      Thanks in advance for any guidance.

       

      --

      jv