1 Reply Latest reply on Feb 25, 2011 12:23 PM by injpix

    Security Domain Confusion

    mattrichard

       

      Our flex app is primarily just a portal to our content which is mostly AS2 swfs created in Flash Pro.  We're having trouble loading those swfs when we debug locally.

       

      When debugged locally, we get spammed by console messages about Security Errors that look like this:

       

       

      *** Security Sandbox Violation ***
      SecurityDomain 'http://www.our-website.com/PAGE_000001.swf' tried to access incompatible context 'file:///path/to/app/app.swf'
      

       

       

      The swfs are loaded into our flex app by a mx:SWFLoader.  Investigating there, I figured the trustContent property was what we were after, but setting that to true causes Run Time Errors instead of just console spam.  I tried using Security.allowDomain in our flex app, and I continue to get the messages as long as the toplevel app is local and the content is not.  What am I doing wrong here?

       

      Edit: Neither swf is trying to interact with the other at all.  That's the part that's confusing me the most.