3 Replies Latest reply on Sep 12, 2006 8:20 PM by crazyjoemilan

    Swapping arrays and running a loop.

    crazyjoemilan Level 2
      So what I'm trying to do is...

      1)create an array containing buttons the user has clicked (up to 20) with [0] being the most recent, and [19] being the oldest. (The array is doesn't HAVE to contain 20, thats just the max).
      2)run a loop that kicks out [19] when a new [0] is added.
      2.b) this loop also performs an action to each movieclip in the array

      I tried to do this using 2 arrays. OLDhistoryArray, and historyArray.

      Currently, the code I have runs the loop 197000 times before crashing my player. I'm absolutely sure I've done something silly here. Your help is much appreciated.