2 Replies Latest reply on Jan 13, 2009 2:33 PM by almacaw

    Passing array variables into functions (and why I'm hopeless at arrays)

    almacaw
      OK, I have spent a day on this now and have done some fairly extensive searching online. The problem is - I am hopeless with arrays (and probably just actionscript generally for that matter)

      I want to create an array of buttons, so I set up an array of actions, step through each item and then try to pass that array action into an onclick button for an attached button

      The problem I have is that the onclick function ALWAYS returns the last item in the array.

      Help!

      Code below:

      ----------------------------------------------------------------