To know the percent loades of a movie I done thisand its working

If I load a movie like this : loadMovie("number.swf", "CIBLE");

How can I do to Know the percent loaded ?

loadBar._xscale = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
percent = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + " %";
seconds = Math.round(getTimer() / 1000) + " secs";
estTime = Math.round(((getBytesTotal() - getBytesLoaded()) / 1024)
/((getBytesLoaded() / 1024) / (getTimer() / 1000))) + " secs restant";
downLoadInfo = Math.round(getBytesLoaded() / 1024) + "k sur " +
Math.round(getBytesTotal() / 1024) + "k à " + Math.round((getBytesLoaded() /
1024) / (getTimer() / 1000)) + "k / sec";
if(getBytesLoaded() == getBytesTotal()) {
    gotoAndPlay(5);
}
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to