# Need alittle help with a button

**URL:** <https://forum.kirupa.com/t/need-alittle-help-with-a-button/29933>\
**Category:** flash\
**Created:** [September 2, 2003, 6:11am UTC](https://forum.kirupa.com/t/need-alittle-help-with-a-button/29933 "2003-09-02T06:11:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![endy](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@endy](https://forum.kirupa.com/u/endy)\
**Post date:** [September 2, 2003, 6:11am UTC](https://forum.kirupa.com/t/need-alittle-help-with-a-button/29933/1 "2003-09-02T06:11:34Z")

</div>

This button i have is animated so that when you rollover it stuff happens so what i did was made a button inside of a movieclip (probrably a bad idea) but anyhow now i want it to jump to a certian frame on the main timeline and play when it is clicked but it keeps trying to jump to the frame within it’s own movieclip… i know there is some kind of .root stuff you can do to specify what level you want it to target but i dont have access to the book from whitch i learned that one. can anyone help with accessing the root level of my movie?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 2, 2003, 6:17am UTC](https://forum.kirupa.com/t/need-alittle-help-with-a-button/29933/2 "2003-09-02T06:17:53Z")

</div>

if you were trying to access the 5 frame in the root level it would be something like this.

```auto

_root.gotoAndPlay(5);

```

you can also access it as level0 such as,

```auto

_level0.gotoAndPlay(5);

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 2, 2003, 6:21am UTC](https://forum.kirupa.com/t/need-alittle-help-with-a-button/29933/3 "2003-09-02T06:21:12Z")

</div>

hope this works :crazy:

name the frame you want to link to “frame” [or whatever you want to name it]

then add this code to ur button.

on(release){  
\_root.gotoAndPlay(“frame”);  
}

:flower:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 2, 2003, 6:21am UTC](https://forum.kirupa.com/t/need-alittle-help-with-a-button/29933/4 "2003-09-02T06:21:56Z")

</div>

lol soulty beat me to it 😃 hehehe

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 2, 2003, 6:29am UTC](https://forum.kirupa.com/t/need-alittle-help-with-a-button/29933/5 "2003-09-02T06:29:38Z")

</div>

My advice for the button your using, you should keep it a movieclip, dnt worry about it being a button, because in flash Mx movieclips can be used as button , look at the fla as a example.
