Guest_imported
New member
- Jan 1, 1970
- 0
Hi there.
I'm making a preloader for a flash movie.
I wanna display in percents (ex: 50%) how much of the flash has been loaded. So I did:
_root.percent = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
And then inserted a dynamic text. The problem is:
How can I make flash do ignore the decimals in the operation above (bytesloaded/bytestotal) ?
I'm having endless decimals being displayed at the dynamic text. I want only number without decimals (ex: 1, 2, 50...)
What should I do ??
Thanks
-- Secret_Doom --
I'm making a preloader for a flash movie.
I wanna display in percents (ex: 50%) how much of the flash has been loaded. So I did:
_root.percent = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
And then inserted a dynamic text. The problem is:
How can I make flash do ignore the decimals in the operation above (bytesloaded/bytestotal) ?
I'm having endless decimals being displayed at the dynamic text. I want only number without decimals (ex: 1, 2, 50...)
What should I do ??
Thanks
-- Secret_Doom --