4 Replies Latest reply on Nov 25, 2009 8:28 AM by Ladislav Navrátil

    Security sandbox error with external swf in Air

    Ladislav Navrátil Level 1

      Hi all,

       

      i can find solution for my scary problem :-)

       

      so:

       

      I have totaly easy application in Adobe Air, which load external swf form web domain. Only few rows...But external swf is complex program, and only one problem I have. When in external swf is used some event, for example MouseEvent:

      //lines in external swf

      somethink.addEventListener(MouseEvent.CLICK, whatever_fce);

      function whatever_fce(event:MouseEvent):void{

           //here i want to read some informations from event object - event.target for example and here is writting error in air application

      }

       

      and error is://error in air app, when i working with event in external swf

      *** Security Sandbox Violation ***

      SecurityDomain 'http://[my domain]/flash/v_1.1.swf' tried to access incompatible context 'app:/main.swf'

       

       

      Can somebody help me, please?

       

      Thank for all ideas and sorry for my english