i use this fucion
Probably because your point variable is a string. Can you check this?
change it to number, it show NaN
Did you initialized it like...
var point:int = 0;
That's the problem.
You need to initialize a numeric variable before trying to do any mathematical operations on it.
Just give it a value like 0.
var point:Number = 0;
ah lovely, it work.. thx mate..