Hello ppl,
I’m creating a site where the menu buttons load the content MCs by jumping to the frame where each MC is located (on the main stage). The menu is one of those accordion menus, moving from top to bottom or viceversa. The AS for one button is this:
on (release) {
if (StartPos==213.6) {
_root.bt_02.StartPos=512.6;
_root.bt_03.StartPos=525.6;
_root.bt_04.StartPos=538.6;
_root.bt_05.StartPos=551.6;
_root.gotoAndPlay(122);
} else if (Startpos==512.6) {
_root.bt_01.StartPos=200.6;
_root.gotoAndPlay(122);
}
}
So when I click on the menu buttons it loads the content. The problem is that when I click it again it doesn’t reload the same frame but jumps to next one - instead of reloading (let’s say) “122”, it loads “123” (stop is included of course). Do you know how to avoid this, besides the usual disable button? It should either just reload the same MC on the same frame or not reload anything!