I always make a little function, dont actually use button symbols as of MX, just a movieClip with a over state (lets say in frame 2) and a stay state (lets say in frame 3). So we name our buttons numerically btn1 thru (however many we have
) lets say 4.
we then use an for loop so when a button is clicked it goes thru the loop resetting all the buttons, then just changes the button that was clicked.
Code:
//no of buttons
for (i=0; i<4; i++) {
//the buttons function
this["btn"+i].onRelease = function() {
//firstly we need to set all buttons back to normal, using another for loop
for (j=0; j<myBtn.length; j++) {
//send all buttons to their normal position
this._parent["btn"+j].gotoAndStop("normal");
}
//send the one being clicked to the frameLabel "depressed"
this.gotoAndStop("depressed");
};
//when we rollOver the button with the mouse:
this["btn"+i].onRollOver = function() {
//send it to the frameLabel "over"
this.gotoAndStop("over");
//create an onRollOut function sending the playhead to "Normal"
this.onRollOut = function() {
this.gotoAndStop("normal");
};
};
}
Something like this maybe
Taff
Bookmarks