# Movie clips and the buttons inside them problems

**URL:** <https://forum.kirupa.com/t/movie-clips-and-the-buttons-inside-them-problems/119040>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 2:07am UTC](https://forum.kirupa.com/t/movie-clips-and-the-buttons-inside-them-problems/119040 "2004-08-11T02:07:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronwell\_dobbs](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@ronwell\_dobbs](https://forum.kirupa.com/u/ronwell_dobbs)\
**Post date:** [August 11, 2004, 2:07am UTC](https://forum.kirupa.com/t/movie-clips-and-the-buttons-inside-them-problems/119040/1 "2004-08-11T02:07:14Z")

</div>

Hello. I have recently run into a problem. I have been designing a new webpage and began using a new technique of creating roll over menus by creating movie clips with the code of :

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

as an action. The problem I have run into is that when I put buttons inside the movieclip, the actions for the buttons don’t seem to work. The little hand comes up meaning that the cursor sees it as a button, but still won’t go to the scene I want it to when clicked. If anyone has any suggestions on how I can get the buttons to work inside the movie clips, I would greatly appreciate it.

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![ciab](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@ciab](https://forum.kirupa.com/u/ciab)\
**Post date:** [August 11, 2004, 3:02am UTC](https://forum.kirupa.com/t/movie-clips-and-the-buttons-inside-them-problems/119040/2 "2004-08-11T03:02:54Z")

</div>

are you addressing the correct timeline?

---

<div class="post-metadata">

**Author:** ![ronwell\_dobbs](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@ronwell\_dobbs](https://forum.kirupa.com/u/ronwell_dobbs)\
**Post date:** [August 11, 2004, 1:30pm UTC](https://forum.kirupa.com/t/movie-clips-and-the-buttons-inside-them-problems/119040/3 "2004-08-11T13:30:53Z")

</div>

I pu the action on the button inside the movie clip. So I’m putting the action in the movie clip timeline. How can I put the action for a button that doesnt appear until the end of a movie clip in the main timeline?  
Thanks for the help,  
Matt
