# \_root gone, now what?

**URL:** <https://forum.kirupa.com/t/-root-gone-now-what/274966>\
**Category:** flash\
**Created:** [November 7, 2008, 2:44am UTC](https://forum.kirupa.com/t/-root-gone-now-what/274966 "2008-11-07T02:44:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dColumbus](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dColumbus](https://forum.kirupa.com/u/dColumbus)\
**Post date:** [November 7, 2008, 2:44am UTC](https://forum.kirupa.com/t/-root-gone-now-what/274966/1 "2008-11-07T02:44:59Z")

</div>

OMFG! How in the bloody hell do you tell the ROOT timeline to go to a different frame!?

What is so hard about this?

Please somebody tell me what I need to put into this function in order to make it work:

```auto

tempButton.addEventListener(MouseEvent.CLICK, tempButtonClick);
function tempButtonClick(Event:MouseEvent):void
{
	if (theFrame == 1) {
		theFrame = 10;
		// _root.gotoAndStop(10);
	} else {
		theFrame = 1;
		// _root.gotoAndStop(1);
	}
}

```
