0 Replies Latest reply on Dec 28, 2009 8:06 AM by mr_payne

    Sandbox bridge....  newbie

    mr_payne

      can anyone give me an example of how to load a local swf from the appllication folder into my AIR app.

       

      the swf contains these security info:

       

      Security.allowDomain('www.youtube.com');

      Security.allowDomain('gdata.youtube.com');

      Security.allowInsecureDomain('gdata.youtube.com');

      Security.allowInsecureDomain('www.youtube.com');

       

      my understanding is that AIR wont allow this to happen...unless you use the Sandbox Bridge to give the loaded swf permission to do as its thing...

       

       

       

       

      var loader:Loader = new Loader();

      loader.load(new URLRequest(File.url));  

      swfContainer.addChild(loader);  

       

      causes...

       

      SecurityError: Error #3207: Application-sandbox content cannot access this feature.

      at flash.system::Security$/allowDomain()