did you try Math.round or math.round?
this code does work, however the percent displays something like 15 places
...
onClipEvent (load) {
this.loadMovie("bigfile.swf");
}
onClipEvent (enterFrame) {
tBytes = this.getBytesTotal();
trace("tBytes: "+tBytes);
bLoaded = this.getBytesLoaded();
trace("bLoaded: "+bLoaded);
percent = (bLoaded/tBytes)*100;
if (bLoaded<tBytes) {
_root.bar_mc._xscale = (bLoaded/tBytes)*100;
_root.label_txt.text = percent & " % LOADED";
} else {
//play();
//_root.target_mc.unloadMovie();
//delete this.onEnterFrame;
}
}
i tried math.round but that does not seem to cut the text field length, any
ideas?
i just want 00. thats it ... not 00.00000000000000000
thanks for helping me to get this to work -
_______________________________________________
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
_______________________________________________
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