i have a simple code for loading externals swf into a new swf..
but with away3d swf’s i’ve been unable to..
public function startload():void
{
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("../assets/Testaway.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.load(mRequest);
}
public function onCompleteHandler(loadEvent:Event):void
{
addChild(loadEvent.currentTarget.content);
}
public function onProgressHandler(mProgress:ProgressEvent):void
{
var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
//trace(percent);
}
any ideas??
can this be done??