# Buttons in a mc

**URL:** <https://forum.kirupa.com/t/buttons-in-a-mc/258711>\
**Category:** Uncategorized\
**Created:** [April 27, 2008, 6:25am UTC](https://forum.kirupa.com/t/buttons-in-a-mc/258711 "2008-04-27T06:25:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ememdoubleu](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ememdoubleu](https://forum.kirupa.com/u/ememdoubleu)\
**Post date:** [April 27, 2008, 6:25am UTC](https://forum.kirupa.com/t/buttons-in-a-mc/258711/1 "2008-04-27T06:25:15Z")

</div>

hey guys,  
as i am totally new here and to Flash CS3 and as AS3 is chinese for me i cant work out how to direct a button in a separate MovieClip to the main timeline.  
As the MovieClip has an own timeline i am aware that i have to direct my button to “the parent”, just how do i fix this in code?  
please help me out here,  
this is as far as i got when it comes to buttons and code (blush):

function onRoomsSuitesClick(evt:MouseEvent):void {  
gotoAndPlay(“rooms\_suites”);  
roomsSuites\_btn.addEventListener(MouseEvent.CLICK, onRoomsSuitesClick);

cheers,  
jay
