RE: [Flashcoders] math.round question

2007-03-17 Thread Kerem İşeri
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

Re: [Flashcoders] math.round question

2007-03-17 Thread T. Michael Keesey
int() is deprecated in favor of Math.floor() (for numbers) or parseInt() (for strings). In AS3 int has a different meaning (a data type instead of a function). On 3/17/07, Kerem İşeri [EMAIL PROTECTED] wrote: Just replace the code with below: loadProgressOutput =

Re: [Flashcoders] math.round question

2007-03-16 Thread Pedro Taranto
loadProgressOutput = Math.round(this.getBytesLoaded()*100/this.getBytesTotal()); --Pedro Taranto Gustavo Duenas escreveu: hi, this is the code of my loader. if(_framesloaded 0 _framesloaded == _totalframes){ gotoAndPlay(beginMovie); } else{ loadProgressOutput =

Re: [Flashcoders] math.round question

2007-03-16 Thread Gustavo Duenas
thanks man...that looks great regards Gustavo On Mar 16, 2007, at 5:54 PM, Pedro Taranto wrote: loadProgressOutput = Math.round(this.getBytesLoaded()*100/ this.getBytesTotal()); --Pedro Taranto Gustavo Duenas escreveu: hi, this is the code of my loader. if(_framesloaded 0

Re: [Flashcoders] math.round question

2007-03-16 Thread T. Michael Keesey
What is loadProgressOutput? If it's a text field, you need to set its text property, e.g.: loadProgressOutput.text = String(Math.round(100 * getBytesLoaded() / getBytesTotal())); or even: loadProgressOutput.text = String(Math.floor(100 * getBytesLoaded() / getBytesTotal())) + %; I'd recommend