3 Replies Latest reply on May 22, 2006 8:06 AM by 2m

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

    _EnergiE_ Level 1
      I must be going mad...
      I just write:
      var directio:Number=1 //or any other number
      var someArray:Array=new Array( 1, 0, -1, 0);
      var deltaX:Number = anyNumber*someArray[directio];
      trace (deltaX);

      and this returns NaN !!

      I tried even creating a numeric variables and then put them in the array: the same result
      What am I doing wrong?