# Need help with a template menu button

**URL:** <https://forum.kirupa.com/t/need-help-with-a-template-menu-button/226078>\
**Category:** Uncategorized\
**Created:** [May 17, 2007, 11:58pm UTC](https://forum.kirupa.com/t/need-help-with-a-template-menu-button/226078 "2007-05-17T23:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nocturnaloner](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@Nocturnaloner](https://forum.kirupa.com/u/Nocturnaloner)\
**Post date:** [May 17, 2007, 11:58pm UTC](https://forum.kirupa.com/t/need-help-with-a-template-menu-button/226078/1 "2007-05-17T23:58:16Z")

</div>

I’m working with a TemplateMonster Flash site, and they are doing an animated page swap with this button code:

```auto
on (rollOver) {
    if (_root.link<>5) {
        this.gotoAndPlay("s1");
    }
}
on (releaseOutside, rollOut) {
    if (_root.link<>5) {
        this.gotoAndPlay("s2");
    }
}
on (release) {
    if (_root.link<>5) {
        _root.menu["item"+_root.link].gotoAndPlay("s2");
        _root.link = 5;
        _root.play();
    }
}

```

What I need to do is add something to that, that will go to a specific frame in a page mc after it goes to the page. Pretty basic, but I can’t get the syntax right. None of the pages have instance names that I can see.
