Answered
apply one function to muliple movieclips
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
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