# Button within a movieclip problem - plz help!

**URL:** <https://forum.kirupa.com/t/button-within-a-movieclip-problem-plz-help/270461>\
**Category:** Uncategorized\
**Created:** [September 10, 2008, 9:29am UTC](https://forum.kirupa.com/t/button-within-a-movieclip-problem-plz-help/270461 "2008-09-10T09:29:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dansz\_again](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Dansz\_again](https://forum.kirupa.com/u/Dansz_again)\
**Post date:** [September 10, 2008, 9:29am UTC](https://forum.kirupa.com/t/button-within-a-movieclip-problem-plz-help/270461/1 "2008-09-10T09:29:27Z")

</div>

Hello Flash/Kirupa-people,

Even though i know not much of actionscripting, i like to make sites that are flash-based, so i keep on challanging myself with that. But now i stumbled into something, and i just cant find a solition!

here is my problem:

I have made dropdownmenu’s in a movieclip and the mc works with hittest like this:

onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
this.nextFrame();  
} else {  
this.prevFrame();  
}  
}

In this dropdown-menu i have buttons, those should be able to load and unload movieclips into an emptymc and an emptymc2 in the main movie (\_root). I need them to load 2 things:  
the background (background.swf, in empty mc) and the text (text1, in emptymc2) that comes over te background. And since i want only the text to change when another button is hit in the same dropdown menu, i tried to work with this:

on (press) {  
if (\_root.emptymc.getBytesTotal()\<10) {  
loadMovie(“background.swf”, “emptymc”);  
}  
loadMovie(“text1.swf”, “emptymc2”);  
}

But, no matter what i try to do, i just cant get it to work, it only works when the button with this action is already in the \_root, and i dont want that. Neither can i put the emptymc or the emptymc2 in the same movieclip as the dropdownmenu, because i want other buttons (from another dropdownmenu) also to use the emptymc and emptymc2.

Maybe i have taken a wrong direction to begin with, i really dont know. But if you do, please enlighten me! 🙂
