Sup, guys.
I am kinda new to AS3, so my problem might be a dumb one, but anyway.
So i am loading some image, using ImageLoader like this:
var fire:ImageLoader = new ImageLoader(E:/AS3/Projects/Island/fire.png", {name:"fire", onComplete:onImageLoad});
fire.load();
Then in the onImageLoad handler i create two bitmaps using loaded data:
private function onImageLoad(event:LoaderEvent):void {
var smt:Bitmap = LoaderMax.getLoader("fire").rawContent;
addChild(smt);
var ant:Bitmap = LoaderMax.getLoader("fire").rawContent;
addChild(ant);
ant.x = 200;
Then i compile my swf and there is only one image on the stage. Also, if i remove one of the images (ant or smt) using removeChild(), the stage becomes clear as if both bitmaps just point to one instance. This is driving me insane for a couple of hours. What am i doing wrong?