# How can I make a button inside a MovieClip control its own timeline?

**URL:** <https://forum.kirupa.com/t/how-can-i-make-a-button-inside-a-movieclip-control-its-own-timeline/280785>\
**Category:** flash\
**Created:** [January 31, 2009, 9:13pm UTC](https://forum.kirupa.com/t/how-can-i-make-a-button-inside-a-movieclip-control-its-own-timeline/280785 "2009-01-31T21:13:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodos](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kodos](https://forum.kirupa.com/u/kodos)\
**Post date:** [January 31, 2009, 9:13pm UTC](https://forum.kirupa.com/t/how-can-i-make-a-button-inside-a-movieclip-control-its-own-timeline/280785/1 "2009-01-31T21:13:44Z")

</div>

Hello,

I created a Movie Clip with a button inside it. The Movie Clip contains simple animation within its timeline. I dragged the Movie Clip to the main stage and tested the movie/ My goal is to have the button start the animation inside the Movie Clips timeline but it is not working.

The Movie Clip instance is named ‘film\_mc’ and the button inside it is named ‘first\_btn.’ The frame is labeled ‘one’. I tried these two Action Scripts that I put on the main timeline. Where am I going wrong? Thanks for any input.

film\_mc.first\_btn.onRelease=function(){  
film\_mc.gotoAndPlay(“one”);  
}

film\_mc.first\_btn.onRelease=function(){  
this.film\_mc.gotoAndPlay(“one”);  
}
