# Button in mc

**URL:** <https://forum.kirupa.com/t/button-in-mc/100679>\
**Category:** Uncategorized\
**Created:** [February 1, 2004, 8:12am UTC](https://forum.kirupa.com/t/button-in-mc/100679 "2004-02-01T08:12:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![doOfus](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@doOfus](https://forum.kirupa.com/u/doOfus)\
**Post date:** [February 1, 2004, 8:12am UTC](https://forum.kirupa.com/t/button-in-mc/100679/1 "2004-02-01T08:12:10Z")

</div>

ok, i have this movie clip… and in that movie clip is a button, which is inside another movie clip.

so its like… main movie clip —\> movie clip —\> button. get it ??

and when you press that button, it takes you to a certain frame from the main movie clip.

this is the code that i put on the button

on(release){  
\_root.gallery.gotoAndPlay(“secondb”);  
}

gallery is the name of the main movie clip

secondb is the frame name…

but that code doesnt work… what am i doing wrong?? :hr: help please!!! :beam:
