A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: I need help Manipulating an array

Threaded View

  1. #1
    Join Date
    Jan 2005

    I need help Manipulating an array

    I have an array declare on my main time line named W_time in it i have several numbers.
    now what i want to do is add this numbers in the array together so i can have a sum, then i want to find the average for this numbers, am usint this code to find it, but it returns NaN....

    for(i = 0; i < 10; i++){
    sum += W_time[i];
    myAverage = sum / 10;

    does this work or is there another way to add an array. Pls help.......

    Last edited by flash_ee2; 02-19-2005 at 04:56 PM.
    Post no bills

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center