# Button problem ... help?

**URL:** <https://forum.kirupa.com/t/button-problem-help/106459>\
**Category:** Uncategorized\
**Created:** [April 6, 2004, 1:58am UTC](https://forum.kirupa.com/t/button-problem-help/106459 "2004-04-06T01:58:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Desire](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Desire](https://forum.kirupa.com/u/Desire)\
**Post date:** [April 6, 2004, 1:58am UTC](https://forum.kirupa.com/t/button-problem-help/106459/1 "2004-04-06T01:58:16Z")

</div>

hey

ive bin trying to figure this out for the past week b4 postin ive remade this like 3 times make trying to make sure i dont fu(k up, incase i added sum action sum where and cant find it but still no gud, :puzzle: its realy startin to stress me guys and i cant take stress i go crazy literaly neways

its ment to be v2 of my site ive basicly got it all down apart from content and these blasted buttons, thats wont work, ive bin playin around with it for the past 2 hours so its a lil messy but i wonder if u guys could take a look cos i cant realy explane wats going off init. :puzzle:

[.fla is here so u can help me 😃 thanks!](http://homepage.ntlworld.com/s.rate/version2.fla)

thanks dudes its prob summit realy easy that my stupid \*\*\* eyes cant see. :d:

---

<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:** [April 6, 2004, 12:53pm UTC](https://forum.kirupa.com/t/button-problem-help/106459/2 "2004-04-06T12:53:09Z")

</div>

just add this code to all your buttons changing the frame number and it will work just fine

```php
on (release) {
_root.gotoAndStop(1);
}

```

---

<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:** [April 6, 2004, 1:43pm UTC](https://forum.kirupa.com/t/button-problem-help/106459/3 "2004-04-06T13:43:29Z")

</div>

Holy Sweet mother of god it works! thanks man wat does the \_root. bit do besides make it work??

thanks man

---

<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:** [April 6, 2004, 1:56pm UTC](https://forum.kirupa.com/t/button-problem-help/106459/4 "2004-04-06T13:56:02Z")

</div>

\_root refers to the the root level of your time line, like the main level. if you had had a button in a mc, and you wanted it to go to the first frame, if you placed the actions:

```auto
 gotoAndStop(1);

```

it would tell that mc to go to frame 1, but if you wanted the main time line to go to frame 1, you would use:

```auto
 _root.gotoAndStop(1); 

```

---

<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:** [April 6, 2004, 4:55pm UTC](https://forum.kirupa.com/t/button-problem-help/106459/5 "2004-04-06T16:55:54Z")

</div>

exactly;)

---

<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:** [April 6, 2004, 5:45pm UTC](https://forum.kirupa.com/t/button-problem-help/106459/6 "2004-04-06T17:45:47Z")

</div>

macneilsit…that was a wonderful explanation of \_root…i wish someone had described it like that to me a year ago…people are so afraid of \_root, but i think if you really understand it, its not that bad. cheers
