Math.Round() - Actionscript
Math.Round() - Actionscript
- Started
- Last post
- 4 Responses
- madino
Anyone use it?
I am trying to round these numbers
"_root.mc_shell_01.mc_scalebox_0... = (boxx-_root.mc_shell_01.mc_scale...
if you know a way, please help me.
Thank you very very much.
- nospacebar0
_root.mc_shell_01.mc_scalebox_01... = Math.round(boxx-_root.mc_shell _01.mc_scalebox_01._ width)/speed)
- madino0
Tried to do that before, still didn't work.
I am not sure if it will even work.
- punch0
root.mc_shell_01.mc _scalebox_01._width = Math.round((boxx-_roo t.mc_shell _01.mc_scalebox_01._ width)/speed) ;
forgot a bracket nospacebar.
Math.round is a method and the scaling formula is the parameter/argument, so you put it in the brackets like you would do with any parameter.
- nospacebar0
Once again, punch has beat me to the... oh nevermind.