0 Replies Latest reply on Apr 23, 2011 6:47 PM by tjay99

    Sandbox  2070 security error


      Hi All,


      Probably a simple fix for someone else, but I am struggling to work out how do the following.


      I have an Air App made in Adobe Flex Builder 3 that first loads in an XML file and that XML then tells the air app what to display. All works fine when loading .swf files without linked classes, but when the .swf does have a linked classed I get errors like this:




      SecurityError: Error #2070: Security sandbox violation: caller file:///C:/Documents%20and%20Settings/tim/myassets/Star.swf cannot access Stage owned by app:/main.swf.
      at flash.display::Stage/get stageWidth()
      at Star_fla::MainTimeline/frame1()




      I've tried adding:


      import flash.system.Security;



      to the Flash files as well as playing around with crossdomain.xml (thinking that might help) but no luck.


      I must be missing a setting in Flex somewhere, does anyone know where I should be looking?


      Thanks heaps!