# Root ugh

**URL:** <https://forum.kirupa.com/t/root-ugh/277514>\
**Category:** Uncategorized\
**Created:** [December 12, 2008, 9:28pm UTC](https://forum.kirupa.com/t/root-ugh/277514 "2008-12-12T21:28:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juskin](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@juskin](https://forum.kirupa.com/u/juskin)\
**Post date:** [December 12, 2008, 9:28pm UTC](https://forum.kirupa.com/t/root-ugh/277514/1 "2008-12-12T21:28:17Z")

</div>

ok so Ive spent an hour trying to figure out root in as3. I have a game which consists of 5 frames.frame 1 asks if you wnat to play and that clicks thru to frame 2. I have a meter which is a movieClip, and if the meter goes to the last frame, there is an onEnterFrame listener that I want to tell the main timeline to gotoAndStop at frame 5, here is the eventlistener code:  
this.addEventListener(event.ENTER\_FRAME, youLoseGame);  
function youLoseGame(event:Event):void {  
stage.root.gotoAndStop(5);  
[//stage.gotoAndStop](https://stage.gotoAndStop)(5);  
}  
I dont understand how to access the main timeline, Ive tried several things anyone know? I swear I will go back into learning more about the display object but for now I need it to work!

Justin
