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
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 =
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 =
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
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
5 matches
Mail list logo