# Rollover buttons embedded in MC do not work

**URL:** https://forum.kirupa.com/t/rollover-buttons-embedded-in-mc-do-not-work/320330
**Category:** Uncategorized
**Created:** [March 20, 2011, 11:37pm UTC](https://forum.kirupa.com/t/rollover-buttons-embedded-in-mc-do-not-work/320330 "2011-03-20T23:37:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wombattery](https://avatars.discourse-cdn.com/v4/letter/w/e8c25b/32.png) [@wombattery](https://forum.kirupa.com/u/wombattery)
#### Post date: [March 20, 2011, 11:37pm UTC](https://forum.kirupa.com/t/rollover-buttons-embedded-in-mc-do-not-work/320330/1 "2011-03-20T23:37:18Z")

</div>

Hi guys,

I was hoping to have some help here after I have tried looking for a solution for this issue and many of them come close but do not accurately apply to my situation. I have several roll over invisible buttons as well as their corresponding mc buttons embedded in a mc, lets call parent\_mc. The roll over function not only stops working, but the animation of the corresponding movieclip buttons now keeps looping even without a rollover triggering it.

Is this just a simple case of disabling the parent movieclip? If so I am not sure how so.

All buttons work fine before embedding them in a parent movieclip. I believe it is not too complex of a problem for you guys as im a newbie. Very much appreciate the feedback![/QUOTE]

Not sure if this will help but I will provide the source code:  
AS on main timeline defining the action of the roll over animation buttons:

\_root.btn1.onEnterFrame = function() {  
if (mouse\_over\_cube1) {  
\_root.cube1.nextFrame();  
} else {  
\_root.cube1.prevFrame();  
}  
};

\_root.btn2.onEnterFrame = function() {  
if (mouse\_over\_cube2) {  
\_root.cube2.nextFrame();  
} else {  
\_root.cube2.prevFrame();  
}  
};

\_root.btn3.onEnterFrame = function() {  
if (mouse\_over\_cube3) {  
\_root.cube3.nextFrame();  
} else {  
\_root.cube3.prevFrame();  
}  
};

AS of a invisible button:  
on (rollOver) {

\_root.mouse\_over\_cube3 = true;  
}

on (rollOut) {  
\_root.mouse\_over\_cube3 = fstartlse;  
}

on (release){  
getURL("/");  
}
