I'm trying to set up a menu in Flash MX using callback functions with the
script at Frame 1. The script:
button1.onRollOver = function() {this._alpha = 50;}
button1.onRollOut = function() {this._alpha = 0;}
button1.onRelease = function() {gotoAndStop("menu1");}
button2.onRollOver = function() {this._alpha = 50;}
button2.onRollOut = function() {this._alpha = 0;}
button2.onRelease = function() {gotoAndStop("menu2");}
button3.onRollOver = function() {this._alpha = 50;}
button3.onRollOut = function() {this._alpha = 0;}
button3.onRelease = function() {gotoAndStop("menu3");}
button4.onRollOver = function() {this._alpha = 50;}
button4.onRollOut = function() {this._alpha = 0;}
button4.onRelease = function() {gotoAndStop("menu4");}
stop();
This assumes, of course, button1 through button4 exist and the frame labels
are established and a "stop" command is placed at each label.
For reasons I don¹t understand (still a beginner in ActionSccript), the
above doesn't work the way I want it to. I want to be able to choose any
button and jump to its label. As is, if I choose "menu4", afterwards only
"menu1" is available to me.
Anybody know what I'm doing wrong?
Thanks in advance,
Nate Olson