# Linking Buttons inside Movieclips to frame labels?

**URL:** https://forum.kirupa.com/t/linking-buttons-inside-movieclips-to-frame-labels/282141
**Category:** flash
**Created:** [February 18, 2009, 4:17am UTC](https://forum.kirupa.com/t/linking-buttons-inside-movieclips-to-frame-labels/282141 "2009-02-18T04:17:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cr\_sa](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@cr\_sa](https://forum.kirupa.com/u/cr_sa)
#### Post date: [February 18, 2009, 4:17am UTC](https://forum.kirupa.com/t/linking-buttons-inside-movieclips-to-frame-labels/282141/1 "2009-02-18T04:17:57Z")

</div>

Hi, I’ve been working on a new issue while giving a break on cracking the other one.

I have a movie clip acting as a button with rollover/rollout animation- we’ll call it _ **menu\_mc** _ for simple reference.

I’m basically creating a rollover submenu. I’ve set it up a few different ways but the most user friendly has been hiding the _ **submenu\_mc** _ (which has 4 linked buttons to root frame inside) by doing:

\_root.sub5\_mc.\_visible = false;

then inside the _ **menu\_mc** _ with the rollover I have the submenu trigger set to show:

\_root.sub5\_mc.\_visible = true;

The links are working fine but the problem I am running into, is that the rollover state, once over the submenu\_mc, does the rollout function and leaves the submenu\_mc hanging there by itself- still functioning perfectly.  
You can go back over the menu\_mc and it will play out the rollover again.

On the other simple animated buttons (which do not have submenus) I have coded:

on(rollOver) {  
\_root.sub5\_mc.\_visible = false;  
}

…in order to turn off the submenu\_mc. That would work fine assuming you would go directly from one button to another, which can not be banked on that at all.

So I’ve tried removing all the code and placing the _ **submenu\_mc** _ inside the menu\_mc. This caused the rollover/rollout to work great but disables the _ **submenu\_mc** _ buttons.

So I tried removing the buttons from the _ **submenu\_mc** _ and placed them right inside the _ **menu\_mc** _ where I would want them to show. Again, buttons disabled.

I’ve been looking and trying different methods (changing the buttons to mc’s and linking them by \_root.gotoAndPlay, etc.) to no avail.

I have read a few different posts saying it is possible and isn’t possible. Hit test, etc.

Is it possible? If so what am I missing?

Any help would be much appreciated.

**Working with Flash 8 & CS4, actionscript 2.0**
