Thank you Helen I read your code and use it (as follows) ---------------------------------------------------------------------------- - // set up loader, an instance of MovieClipLoader, and loadHandler, the object // that will listen for its events ---------------------------------------------------------------------------- - var loader:MovieClipLoader = new MovieClipLoader(); var loadHandler:Object = new Object(); loader.addListener(loadHandler);
----------------------------------------------------------- // define what happens when the jpg is completely loaded ---------------------------------------------------------- loadHandler.onLoadInit = function(_mc:MovieClip) { _mc._xscale = 50; // here I instead put _mc._WIDTH = 300; _mc._yscale = 50; // here I put instead _mc._HEIGHT = 240; pct_mc._visible = false; }; -------------------------------------------------- // make pct_txt show cumulative loading progress ---------------------------------------------------- loadHandler.onLoadProgress = function(_mc:MovieClip, loaded:Number, total:Number) { pct_mc.pct_txt.text = Math.floor(loaded / total * 100) + "%"; }; loader.loadClip("oahupics/hanauma.jpg", holder_mc); ---------------------------------------------------------------------------- ------ but I have an error message : is it mandatory to use the "onLoadProgress " handler ? Where I have to put this code in the timeline ? or in the movie-cip "holder_mc" ? with an OnLoad ? Thank you again Tony _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders