2 Replies Latest reply on Mar 27, 2009 6:35 AM by maith

    for loop cannot get to work

    maith Level 1
      Hi,

      The loop I have is

      var phone:Number;
      var phone4:Number = 777;
      for (var Q:Number = 1; Q < 6; Q++) {
      trace ( Number(phone) +Q );
      }

      The result is NaN. It should be 777
      What am I doing wrong ?

      Thanks,
      Paul