I am trying to write a class file for loading a movieclip but it is not working. I am not even getting any error message.
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class CompletePic extends MovieClip {
public var imageLoader:Loader = new Loader();
public var loadPic_mc:MovieClip = new MovieClip();
public var url:String = "pictures/pic3.jpg";
public function CompletePic() {
addChild(loadPic_mc);
imageLoader.load(new URLRequest(url));
loadPic_mc.addChild(imageLoader);
}
}
}
It is unable to display the picture. I have used addChild to display the picture to the stage. But it’s not working. What could be the possible reason.