# Cant get nested buttons to work

**URL:** <https://forum.kirupa.com/t/cant-get-nested-buttons-to-work/249732>\
**Category:** Uncategorized\
**Created:** [January 22, 2008, 3:30am UTC](https://forum.kirupa.com/t/cant-get-nested-buttons-to-work/249732 "2008-01-22T03:30:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparrowco](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sparrowco](https://forum.kirupa.com/u/sparrowco)\
**Post date:** [January 22, 2008, 3:30am UTC](https://forum.kirupa.com/t/cant-get-nested-buttons-to-work/249732/1 "2008-01-22T03:30:35Z")

</div>

hi all, i cant seem to find my way around this one …

i have a movie clip thats a calendar, inside the movie clip are buttons for the days on the calendar. when you click on the day button you will get event info.

i also want the calendar as a whole to scale larger when it is rolled over and thats where my problem comes in:

i have a layer with the calendar\_mc and a layer of script:

\_root.content\_mc.events\_mc.calendar\_mc.onRollOver = function() {  
\_root.content\_mc.events\_mc.calendar\_mc.xwidth = 200;  
\_root.content\_mc.events\_mc.calendar\_mc.yheight = 155;  
}

\_root.content\_mc.events\_mc.calendar\_mc.onRollOut = function() {  
\_root.content\_mc.events\_mc.calendar\_mc.xwidth = 100;  
\_root.content\_mc.events\_mc.calendar\_mc.yheight = 78;  
}

inside calendar\_mc are a bunch of buttons that no longer work once i apply this script. obviously its because the whole thing is turned into one big button now and so it cancels-out all the internal buttons, but how do i get around this?!

i also tried applying the rollover script to a button inside calendar\_mc several different ways but that didnt work either.

help!!

thanks!!
