1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| stop();
barre._xscale=0;
var conteneur:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var mcl:MovieClipLoader=new MovieClipLoader();
var _o:Object={};
_o.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void
{
barre._xscale = Math.round(bytesLoaded/bytesTotal*100);
pourcent = Math.round(bytesLoaded/bytesTotal*100);
pourcent += "%";
}
_o.onLoadInit=function(target:MovieClip):Void
{
barre._xscale=0;
charge._visible=false;
pourcentage._visible=false;
}
mcl.addListener(_o);
mcl.loadClip("mapagedephotos.swf",conteneur); |
Partager