# My button within movieclips not working

**URL:** <https://forum.kirupa.com/t/my-button-within-movieclips-not-working/64748>\
**Category:** Uncategorized\
**Created:** [September 19, 2004, 3:24pm UTC](https://forum.kirupa.com/t/my-button-within-movieclips-not-working/64748 "2004-09-19T15:24:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![postatomic](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@postatomic](https://forum.kirupa.com/u/postatomic)\
**Post date:** [September 19, 2004, 3:24pm UTC](https://forum.kirupa.com/t/my-button-within-movieclips-not-working/64748/1 "2004-09-19T15:24:23Z")

</div>

Hi,

I’ve hit a problem. Can you help?

I have an animated button that is in a movieclip, this movieclip is on the main timeline.  
The buttons actions refer to certain frames on the main timeline.  
The problem is I can get the button to gotandplay to the certain frames on this timeline. I’ve tried using “frame labels”, “expressions”, “\_root.” But nothing seems to work.

I’ve uploaded a simple .fla of what I’m working on.

Can anyone help?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2004, 4:43pm UTC](https://forum.kirupa.com/t/my-button-within-movieclips-not-working/64748/2 "2004-09-19T16:43:51Z")

</div>

Where you have your code on the button, use this instead:

on (release) {  
\_root.gotoAndPlay(15);  
}
