# Button inside MC not working

**URL:** <https://forum.kirupa.com/t/button-inside-mc-not-working/240311>\
**Category:** Uncategorized\
**Created:** [October 2, 2007, 12:03am UTC](https://forum.kirupa.com/t/button-inside-mc-not-working/240311 "2007-10-02T00:03:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eperrier](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@eperrier](https://forum.kirupa.com/u/eperrier)\
**Post date:** [October 2, 2007, 12:03am UTC](https://forum.kirupa.com/t/button-inside-mc-not-working/240311/1 "2007-10-02T00:03:48Z")

</div>

Hi,  
I’m very limited in my Flash skills, but I try…

I have a text box that’s scrollable & has up/down buttons - if I test this scene alone, it works perfectly - scrolls down when you hit down… scrolls up when you hit up…

This text box is inside of a graphic symbol, which is inside of a movie clip symbol - now the button’s don’t work when I test the scene from outside of the movie clip symbol. The code inside of the graphic symbol for my buttons is:

this.scrollDown.onPress = function() {  
scrollDirection = “down”;  
scrollText();  
}  
this.scrollUp.onPress = function() {  
scrollDirection = “up”;  
scrollText();  
}  
this.scrollUp.onRelease = function() {  
delete \_root.onEnterFrame;  
}  
this.scrollDown.onRelease = function() {  
delete \_root.onEnterFrame;  
}  
function scrollText() {  
\_root.onEnterFrame = function() {  
if (scrollDirection == “up”) {  
scrolltext.scroll -= 1;  
} else if (scrollDirection == “down”) {  
scrolltext.scroll += 1;  
}

}

}

I have a feeling it is something to do w/the use of root, or level or something? (Just a feeling though…) Any insight? Or if I need to be any clearer or something let me know, it’s very important to me to figure this out asap.

Thanks ahead for any help anyone can offer.
