How to create an Array which holds numbers ?!?!


i must going mad...
i write:
var directio:number=1 //or other number
var somearray:array=new array( 1, 0, -1, 0);
var deltax:number = anynumber*somearray[directio];
trace (deltax);

and returns nan !!

i tried creating numeric variables , put them in array: same result
what doing wrong?

never mind. turned out typing mistake


More discussions in ActionScript 1 and 2


adobe

Comments