7 Replies Latest reply on Oct 2, 2008 2:09 PM by flashSpaz

    Button that plays a different sound after each click

    flashSpaz
      I'm self taught and so far have been able to build what i need from tutorials.
      I can't find a tutorial for this, and my understanding of actual coding is somewhat limited.
      Working in Flash 7, AS 2. I want to create a button that plays a different sound when clicked.
      This would require some code that will count the button clicks and play the assigned sound.
      I think this would be done by assigning a variable to the button, and then each click would be var+1, then a var=2 play "sound2". Var=3 play"3" etc..

      I have no idea how to script this.
      Any help would be great.

      Thanks