0 Replies Latest reply on Jul 8, 2010 6:53 AM by Futurmat

    parentSandboxBridge in HTMLLoader

    Futurmat

      I try to create a parentSandboxBridge to content I load in my Air application using HTMLLoader. What I do is:

       

      In my parent document:

       

      var request:URLRequest = new URLRequest('myfile.html');
      htmlLoader = new HTMLLoader();
      htmlLoader.width = 100;
      htmlLoader.height = 100;
      htmlLoader.load(request);

       

      var myObject:Object = new Object();
      myObject.test = 45;
      htmlLoader.loaderInfo.parentSandboxBridge = myObject;

       

      When I compile my my application I get the error:

       

      [Fault] exception, information=SecurityError: Error #3206: Caller app:/myairapp.swf cannot set LoaderInfo property parentSandboxBridge.

       

      Any ideas what's going wrong?

       

      Thanks,

       

      Peter