Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if statement

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi all,
i am trying to create a dynamic menu. out of my mc menu pops up the submenu, which has categories you can klick on.

the problem is, if you are in category "business" for example and press it again, it keeps poping up.

i know, normally you add a stop, but tried that. this will cause my pop out animation to stop.

guess my question is.
can you add an if statement, that checks, if in another mc a certain frame is displayed, and if yes, to stop???? (sounds funny)!!!

i am just lost, and would appreciate any script that comes close ...
thanks in advance
 
heyyyy,
awesome that works.thanks a million.

...one further question(everytime i add an else
statement, i get an error message, else doesnt
match if ... bla bla.

on (release) {
if(otherMc._currentframe==8){
stop();
}

} else {
_root.submenu.gotoAndPlay(3);

}

i moved things around for hours. is there an easy
answer to this also?
thanks
 
} in the wrong spot should be:

on (release) {
if(otherMc._currentframe==8){
stop();
} else {
_root.submenu.gotoAndPlay(3);
}
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top