Here's the scoop,
I have an array in frame 1 of the main timeline like this:
stop();
totals = new Array ();
I have a text field named newarra and button that updates the array and moves the main timeline to the frame 3:
on (press)
{totals.push(newarra);
}
on (release)
{_root.gotoAndStop(3);
}
This works fine. The user can add as many elements to the array as they like by seperating them with a comma.
My problem is that I need to know how many elements are in the array once the maintimeline gets to frame 3.
so in frame 3 I put these actions:
arralength = totals.length;
trace (arralength);
trace (totals);
in the output window arralength always returns a value of 1 regardless of the number of elements in the array.
Can anyone PLEASE shed some light? I'm stuck on this.
Dev_Flasher