This is the code I'm using in my preloader (got it from a tutorial). But this code shows the numbers with like 6 decimals. How do you get rid of the decimals?Code:onClipEvent (load) { total = _root.getBytesTotal() + " bytes"; } onClipEvent (enterFrame) { download = _root.getBytesLoaded() + " bytes"; bytesleft = _root.getBytesTotal()-_root.getBytesLoaded()+" bytes"; percent = _root.getBytesLoaded()/_root.getBytesTotal()*100+"%"; if (percent == "100%") { _root.gotoAndPlay( 2 ); } }
Thank you for your replies!