# Jumping to label in main timeline

**URL:** https://forum.kirupa.com/t/jumping-to-label-in-main-timeline/321749
**Category:** Uncategorized
**Created:** [April 29, 2011, 3:02pm UTC](https://forum.kirupa.com/t/jumping-to-label-in-main-timeline/321749 "2011-04-29T15:02:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mrsnoogle](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mrsnoogle](https://forum.kirupa.com/u/mrsnoogle)
#### Post date: [April 29, 2011, 3:02pm UTC](https://forum.kirupa.com/t/jumping-to-label-in-main-timeline/321749/1 "2011-04-29T15:02:58Z")

</div>

hey there 🙂  
I am trying to make a button jump to a label in the main timeline from within a movieclip but I dont think i have the syntax etc correct. I’m getting “access of undefined property \_root” when I run the following code. Any ideas what I’m doing wrong here? heres the code…

menuButton\_IN.pHome\_IN.addEventListener(MouseEvent.MOUSE\_DOWN, onPressHandler);

function onPressHandler(myEvent:MouseEvent){  
\_root.gotoAndPlay (“home”);  
}

… any help would be great!  
… Camm
