6 Replies Latest reply on Dec 7, 2006 9:55 AM by rodolfo1216

    apply one function to muliple movieclips

    rodolfo1216 Level 1
      I've got 24 movieclips which I'm using as buttons. The first frame is labeled "up", the second is labeled "over", etc. Question: instead of having to write this 24 times:

      mybutton1.onRollOver = function(){
      this.gotoAndStop("over");
      }
      is there a way to apply this RollOver action to all 24 buttons in a more parsimonious way? I tried this:

      mybutton1 = mybutton 2.onRollOver = function(){
      this.gotoAndStop("over");
      }

      but that doesn't work. Help is much appreciated!

      Michael