# Button Event To Frame Label

**URL:** <https://forum.kirupa.com/t/button-event-to-frame-label/312206>\
**Category:** Uncategorized\
**Created:** [July 28, 2010, 3:42am UTC](https://forum.kirupa.com/t/button-event-to-frame-label/312206 "2010-07-28T03:42:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EMart78](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EMart78](https://forum.kirupa.com/u/EMart78)\
**Post date:** [July 28, 2010, 3:42am UTC](https://forum.kirupa.com/t/button-event-to-frame-label/312206/1 "2010-07-28T03:42:38Z")

</div>

I am having trouble trying to get a button to target a frame label. Right now I have the button inside a movie clip and my idea was to have the click event target a frame label that is outside of the button movie clip. The frame label actually lives within the parent movie clip of the movie clip holding the button. I am using Action Script 3.0 so I am not sure what to do. And not sure if I should have the actionscript inside the nested movie clip or in the parent. Here is what I have so far…

/\*  
The parent movie clip is called “services\_mc”  
The nested movie clip holding the button is called “brandID\_mc”  
The button is called “goback\_btn”  
The frame label “Home” is my target  
\*/

goback\_btn.addEventListener(MouseEvent.CLICK, servicesHome);  
function servicesHome(event:MouseEvent):void  
{  
gotoAndStop(“Home”);  
}
