Doesn't Work !
Here are the complete code
--------------------------------------------------------------------------------
------
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Matrix;
import flash.geom.ColorTransform;
//Create e retangle with gray color...
cena = new BitmapData(550,400 , false, 0x00CCCCCC);
this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
var mclListener:Object = new Object();
mclListener.onLoadComplete = function(target_mc:MovieClip, httpStatus:Number){
trace("Loaded!");
target_mc._parent.desenha();
}
mclListener.onLoadError = function(target_mc:MovieClip, errorCode:String) {
trace(errorCode);
}
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("E:\\Rafel Geral\\Bread\\Gifs\\barracima.gif", image_mc);
this.createEmptyMovieClip("teste", this.getNextHighestDepth());
desenha = function(){
this.cena.draw(image_mc,new Matrix(),new ColorTransform());
this.teste.attachBitmap(cena,1);
}
--------------------------------------------------------------------------------
-------------------------------------
NSurveyor - 31 Dec 2005 04:52 GMT
Change onLoadComplete to onLoadInit