# Simple problem, but it breaks my head

**URL:** <https://forum.kirupa.com/t/simple-problem-but-it-breaks-my-head/209960>\
**Category:** Uncategorized\
**Created:** [December 13, 2006, 5:53pm UTC](https://forum.kirupa.com/t/simple-problem-but-it-breaks-my-head/209960 "2006-12-13T17:53:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HandyMan](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@HandyMan](https://forum.kirupa.com/u/HandyMan)\
**Post date:** [December 13, 2006, 5:53pm UTC](https://forum.kirupa.com/t/simple-problem-but-it-breaks-my-head/209960/1 "2006-12-13T17:53:55Z")

</div>

This code is in a movieclip. There is 6 buttons outside using the same script and it works fine, but not when I have a submenu in a movieclip and use the code… figured it would work as it uses "\_root. " but it dont … anyone knows what may be wrong ?

```auto

this.btnLunchSushi.onRelease = lunchSushiRelease;
this.btnlunchVarm.onRelease = lunchVarm;

function lunchSushiRelease() {
    if (_root.section != "lunchSushi.swf") {
        _root.section = "lunchSushi.swf";
        _root.transition.gotoAndPlay("closing");
    }
}

}
function lunchVarm() {
    if (_root.section != "lunchVarm.swf") {
        _root.section = "lunchVarm.swf";
        _root.transition.gotoAndPlay("closing");
    }
}
}

```
