3 Replies Latest reply on Aug 28, 2008 5:40 PM by Olivier C

    SecurityError Security sandbox

    firdosh Level 1
      Hey all,
      I have actually tried a lot of ways to solve this issue but I was just wondering if this is even possible using Sandbox Bridge.

      The Problem
      I have an Air Application that launches a new native window.
      The native window then begins to load a external swf file (minimal drawing widget).
      I can call functions from the loaded swf file which are defined in my Air App using parentSandBoxBridge....great!!

      The problem starts when the drawing widget needs access to the stage event listener

      I get this runtime Error

      SecurityError: Error #2070: Security sandbox violation: caller DrawAir.swf cannot access Stage owned by app:/Main.swf

      at flash.display::Stage/requireOwnerPermissions()
      at flash.display::Stage/addEventListener()



      any help would be appreciated

      cheers
      firdosh