FLASH QUESTION

  • Started
  • Last post
  • 2 Responses
  • CEZER

    Hey I was wondering what advice you guys can give me on exploring multiple event actions with functions.
    For example a movieclip that when clicked will grow as all the other clips shrink etc.
    I am curious as to the best way to set this up with arrays and functions.

  • nothingcrat0

    You're on the right track by using functions and arrays already.

    Generate (or just name) your clips dynamically and have their sizes set to corresponding values in an array.

    When one is clicked, set a variable that determines which clip has been clicked, and cycle through the array to resize the clips (smaller size for those that don't match the variable, bigger for the one that does.

    Obviously, that's a very simplistic description, do you have a more specific question?

  • CEZER0

    yeah, my question really lies in the structure of the code for the function. If you could direct me to any source code you've found it would really help a lot.