# Problem with replaying frame

**URL:** https://forum.kirupa.com/t/problem-with-replaying-frame/140007
**Category:** Uncategorized
**Created:** [March 7, 2005, 8:09pm UTC](https://forum.kirupa.com/t/problem-with-replaying-frame/140007 "2005-03-07T20:09:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![colorflash](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@colorflash](https://forum.kirupa.com/u/colorflash)
#### Post date: [March 7, 2005, 8:09pm UTC](https://forum.kirupa.com/t/problem-with-replaying-frame/140007/1 "2005-03-07T20:09:02Z")

</div>

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:

```auto
 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!
