Hello
I’ve loaded a clip (with a stop() and a trace() on the first frame) in my main swf but somehow when it’s loaded and added on the stage it neither stops nor do the trace command, here’s my code:
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Core extends MovieClip {
private var loader:Loader;
private var req:URLRequest;
private var the_oval:Oval;
public function Core() {
loader=new Loader();
req=new URLRequest("oval1.swf");
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completed);
loader.load(req);
}
private function completed(e:Event):void {
the_oval=loader.content as Oval;
stage.addChild(the_oval);
}
}
}
inside the Oval class which is linked to Oval.fla, there’s nothing but another trace(). This trace works though.