I completed a animated button tut found on another forum and I have a question. How can I get the button to stay on the over state when click and when another is clicked the out animation plays? Here is the code I have so far:
Code:
b1.onRollOver = over;
b1.onRollOut = out;
b1.buttText.buttonText.text = "News"
b2.onRollOver = over;
b2.onRollOut = out;
b2.buttText.buttonText.text = "Music"
b3.onRollOver = over;
b3.onRollOut = out;
b3.buttText.buttonText.text = "Photos"
b4.onRollOver = over;
b4.onRollOut = out;
b4.buttText.buttonText.text = "Contact"
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(7);
}
hope someone can help!
