# Actions inside MC's

**URL:** https://forum.kirupa.com/t/actions-inside-mcs/237440
**Category:** flash
**Created:** [August 30, 2007, 12:14pm UTC](https://forum.kirupa.com/t/actions-inside-mcs/237440 "2007-08-30T12:14:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)
#### Post date: [August 30, 2007, 12:14pm UTC](https://forum.kirupa.com/t/actions-inside-mcs/237440/1 "2007-08-30T12:14:55Z")

</div>

Hello,

I have a ‘menu bar’, and inside that MC are my navigational buttons (MC’s).

When the mouse hovers over the relevant button, I wish it to change colour. But NOT the whole bar including all of the buttons which mine is doing!

It is stacked accordingly: menu\_mc.bio\_mc etc for each button.  
menu\_mc being the navigation MC  
bio\_mc being a button inside it. (aswell as calander\_mc, contact\_mc etc etc)

this is my code: (ps. I am using a lacos class ‘colorTo’)  
For some reason, all of my buttons goto white on Rollover… why is it not working? I though I have made a clear path to what should be activated.  
//  
function menuover (){  
this.colorTo(0xffffff , 1);  
}

function menuoff (){  
this.colorTo(0x999999 , 1);  
}

menu\_mc.bio\_mc.onRollOver = function(){  
menuover();  
}  
menu\_mc.bio\_mc.onRollOut = function(){  
menuoff();  
}

//

Thanks \>\>\>
