| only search FlashSource |
| AS3 Maths |
Flash Maths:
Math ABS Function
Category : Flash Static functions Author : Raina
Math abs() function is the simplest one , which returns the absolute value of
a number
function abs(n:Number){
if( n>0){
return n;
}
else return -n;
}
trace(abs(-3));
February 27, 2011URL: www.flashsource.in
copyright ©2010 flashsource.in
Contact : Administrator@flashsource.in |Entertainment