5 Replies Latest reply on Dec 28, 2011 12:11 AM by poortip87

    can't launch an external SWF in my project AIR

    Z§GHLBKL§

      Hello,

       

      i try different way to launch an external SWF from my project written in Air Flex 3 AS3.

       

      If i try swfload, i have this message

      " Loader.loadBytes() is not permitted to load content with executable code."

       

      If i try the loader method like this

      "var loaderContext:LoaderContext = new LoaderContext(false);
      loaderContext.allowLoadBytesCodeExecution = true;
      loader.loadBytes(byteArray,loaderContext);
      addChild(loader);'

       

      I have this message

      "Type Coercion failed: cannot convert flash.display::Loader@62ee201 to mx.core.IUIComponent."

      And after

      " Loader.loadBytes() is not permitted to load content with executable  code."

       

      It looks like flex don't care the "loaderContext.allowLoadBytesCodeExecution = true;"

       

      help me please.