把一切看成二进制 !!!!!!!!!!!!!!!!!!!!!!!!!
代码
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, onComplete);
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.load(new URLRequest("target.swf"));
function onComplete(event:Event):void
{
var data:ByteArray = URLLoader(event.target).data;
var swf1:Loader = new Loader();
swf1.loadBytes(data);
addChild(swf1);
var swf2:Loader = new Loader();
swf2.loadBytes(data);
addChild(swf2)
}
urlLoader.addEventListener(Event.COMPLETE, onComplete);
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.load(new URLRequest("target.swf"));
function onComplete(event:Event):void
{
var data:ByteArray = URLLoader(event.target).data;
var swf1:Loader = new Loader();
swf1.loadBytes(data);
addChild(swf1);
var swf2:Loader = new Loader();
swf2.loadBytes(data);
addChild(swf2)
}