Math.Round() - Actionscript
Math.Round() - Actionscript
Out of context: Reply #3
- Started
- Last post
- 4 Responses
- 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.