LeeroyJenkins
02-13-2006, 04:13 AM
Hi i'm currently struggling right now to move a swf loaded from a loader object into a display object. I'm trying to move the loaded swf into a MovieClip so i can use it's properties, but can't figure out how, nor can i find documentation on it anywhere ...
here's the general code:
loader = new Loader();
loader.addEventListener(Event.INIT, onLoadStart);
loader.addEventListener(Event.COMPLETE, onLoadComplete);
private function onLoadComplete(event:Event):void {
output_swf.addChild(loader);
Console.trace('loading swf to layer ' + info.contentType);
}
but at that point, the output_swf currentFrame property is always at 1 ... so i know the loader must be part of the output_swf ....
any ideas?
here's the general code:
loader = new Loader();
loader.addEventListener(Event.INIT, onLoadStart);
loader.addEventListener(Event.COMPLETE, onLoadComplete);
private function onLoadComplete(event:Event):void {
output_swf.addChild(loader);
Console.trace('loading swf to layer ' + info.contentType);
}
but at that point, the output_swf currentFrame property is always at 1 ... so i know the loader must be part of the output_swf ....
any ideas?