Copy link to clipboard
Copied
i use this fucion
Hi.
Probably because your point variable is a string. Can you check this?
Regards,
JC
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;
Copy link to clipboard
Copied
Hi.
Probably because your point variable is a string. Can you check this?
Regards,
JC
Copy link to clipboard
Copied
change it to number, it show NaN
Copy link to clipboard
Copied
Did you initialized it like...
var point:int = 0;
...?
Copy link to clipboard
Copied
nope, just
var point:Number;
Copy link to clipboard
Copied
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;
Copy link to clipboard
Copied
ah lovely, it work.. thx mate..
Copy link to clipboard
Copied
You're welcome!