1 Reply Latest reply on Jan 17, 2012 5:25 PM by Mhood89

    Stage access security error for external loaded swf files.

    kiranemc2 Level 1

      I am loading main.swf file. into my air Application. through SWFLoader class.


      1. main.swf file in "F:\test\main.swf".
      2. Inside main.swf has stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);


      1. When i'm publishing the Air application below mentioned (Red color) Error is coming.

      2. If i try to call the stage also same error repeating.



      SecurityError: Error #2070: Security sandbox violation: caller file:///F:/test/main.swf cannot access Stage owned by app:/Airfile.swf.

      at flash.display::Stage/requireOwnerPermissions()

      at flash.display::Stage/addEventListener()

      at main_fla::MainTimeline/init()

      at main_fla::MainTimeline/frame1()