Thurston
11-22-2006, 04:13 AM
I have four buttons, but I just use these to trigger my menus that fade in and fade out. The first one works, but the others don't. I have one line with my action script... I'll try to explain it below.
Actionscript in buttons (these are different for each button and the menuItem variable is changed on each rollOver...it's suppose to anyways). There is just a stop() command at each of the frames at 7,19,31,& 41 when the menus are at full alpha:
on (rollOver) {
if( this._currentframe == 7 ) {
stop(); }
else{
menuItem = "Info";
if( this._currentframe == 19 ) {
gotoAndPlay( this._currentframe + 1 ); }
if( this._currentframe == 31 ) {
gotoAndPlay( this._currentframe + 1 ); }
if( this._currentframe == 43 ) {
gotoAndPlay( this._currentframe + 1 ); }
}
}
Actionscript when reaching the end of each menu fade out section:
if ( menuItem == "Info" ) {
gotoAndPlay(2); }
if ( menuItem == "Comm" ) {
gotoAndPlay(14); }
if ( menItem == "Guard" ) {
gotoAndPlay(26); }
if ( menuItem == "Peep" ) {
gotoAndPlay(38); }
else {
stop(); }
I have buttons that check for the rollOver command that fade in a movie clip symbol that contains my menu buttons...I have 4 buttons with 4 submenus. But they don't work...var menuItem is set to "Info" and the first submenu fades in and stops at frame 7 as it should but after that, trace messages from the first "Info" button ONLY will respond on rollOver. ANY CLUES??? Thanks!
Actionscript in buttons (these are different for each button and the menuItem variable is changed on each rollOver...it's suppose to anyways). There is just a stop() command at each of the frames at 7,19,31,& 41 when the menus are at full alpha:
on (rollOver) {
if( this._currentframe == 7 ) {
stop(); }
else{
menuItem = "Info";
if( this._currentframe == 19 ) {
gotoAndPlay( this._currentframe + 1 ); }
if( this._currentframe == 31 ) {
gotoAndPlay( this._currentframe + 1 ); }
if( this._currentframe == 43 ) {
gotoAndPlay( this._currentframe + 1 ); }
}
}
Actionscript when reaching the end of each menu fade out section:
if ( menuItem == "Info" ) {
gotoAndPlay(2); }
if ( menuItem == "Comm" ) {
gotoAndPlay(14); }
if ( menItem == "Guard" ) {
gotoAndPlay(26); }
if ( menuItem == "Peep" ) {
gotoAndPlay(38); }
else {
stop(); }
I have buttons that check for the rollOver command that fade in a movie clip symbol that contains my menu buttons...I have 4 buttons with 4 submenus. But they don't work...var menuItem is set to "Info" and the first submenu fades in and stops at frame 7 as it should but after that, trace messages from the first "Info" button ONLY will respond on rollOver. ANY CLUES??? Thanks!