SecurityError: Error #3015: Loader.loadBytes() is not permitted to load content with executable code.

The error is saying that you’re no more allowed to load executable byte arrays.

To resolve it just use allowLoadBytesCodeExecution property of LoaderContext class like this:

var myLoaderContext:LoaderContext = new LoaderContext();

myLoaderContext.allowLoadBytesCodeExecution = true;

 

var mySwfLoader:SWFLoader = new SWFLoader();

mySwfLoader.loaderContext = loaderContext;

mySwfLoader.addEventListener(Event.COMPLETE, handleLoadComplete);

mySwfLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleLoadFault);

mySwfLoader.load(myByteArray);

This is all. Hope this helps you.

你可能感兴趣的:(Security)