# Quick code question

**URL:** <https://forum.kirupa.com/t/quick-code-question/236471>\
**Category:** flash\
**Created:** [August 21, 2007, 7:42am UTC](https://forum.kirupa.com/t/quick-code-question/236471 "2007-08-21T07:42:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilymc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lilymc/32/3676_2.png) [@lilymc](https://forum.kirupa.com/u/lilymc)\
**Post date:** [August 21, 2007, 7:42am UTC](https://forum.kirupa.com/t/quick-code-question/236471/1 "2007-08-21T07:42:34Z")

</div>

I know this is VERY basic and easy, so forgive me, but I just need to know how to change this code. 😊 What I tried didn’t work.

I’m using a tutorial to make a menu, and in the tutorial it assumes that you’re starting with a new .fla, but instead I made a movie clip for the menu within an .fla I was already working on, for a header.

The code I was supposed to use was this one, for the invisible button:

[INDENT]

```auto
on (rollOver) {
 _root.mouse_over_company_mc= true;
} 
on (rollOut) {
_root.mouse_over_company_mc= fstartlse;
}

 on (release){
getURL(”http://www.mysite.com/”);
}

```

[/INDENT]

and for the main action script, this:  
[INDENT]

```auto
 _root.company_mc.onEnterFrame = function() {
if (mouse_over_company_mc) {
_root.company_mc.nextFrame();
} else {
_root.company_mc.prevFrame();
}
};

```

[/INDENT]

So what I did was everytime I saw “\_root”, I changed it to “menu\_mc.” but it didn’t work.

Also, even though I put a stop action on my menu movie clip, the animation keeps going and doesn’t stop.

Sorry again for the n00biest question…

thanks! :cool:
