Just replace the code with below:

loadProgressOutput = int((this.getBytesLoaded()/this.getBytesTotal())*100);

kerem.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Friday, March 16, 2007 11:42 PM
To: Flashcoders mailing list
Subject: [Flashcoders] math.round question

hi, this is the code of my loader.

if(_framesloaded > 0 && _framesloaded == _totalframes){
        gotoAndPlay("beginMovie");
} else{
        loadProgressOutput = this.getBytesLoaded()*100/getBytesTotal();
}


in order to have the percentage without the decimals...Adrian Lynch  
told me that I need the Mat.round()

but I don't know where should I put in...would you help me?


I was trying

this.loadProgressOutput.Math.round();

and Also I tried Math.round(this.loadProgressOutput);

I know that maybe the problem is that i don't know what should be  
into the parenthesis.



Gustavo Duenas

_______________________________________________
[email protected]
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

__________ NOD32 1.1391 (20060201) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


_______________________________________________
[email protected]
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