# Button inside movieclip problemo

**URL:** <https://forum.kirupa.com/t/button-inside-movieclip-problemo/183732>\
**Category:** flash\
**Created:** [March 29, 2006, 4:16pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-problemo/183732 "2006-03-29T16:16:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![o111](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/o111/32/2123_2.png) [@o111](https://forum.kirupa.com/u/o111)\
**Post date:** [March 29, 2006, 4:16pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-problemo/183732/1 "2006-03-29T16:16:27Z")

</div>

Again I face another problem;

I’ve got a movieclip “games\_mc” and inside that mc I’ve got another mc “supermaze\_mc”.  
The “supermaze\_mc” is a game, and it’s not working properly. Or the buttons aren’t.  
On the first frame in the “supermaze\_mc” I have a menu with several buttons such as play,instructions etc. When I click on the play-button I want to get to frame nr. 30 in the same mc (supermaze\_mc). But that doesn’t work when I test the movie. (The other buttons on the menu doesn’t work either)

I now have this code on my play button.

```auto
on (release) {
    gotoAndStop(30);
    
}

```

I have also tried to give my “supermaze\_mc” an instance name and used this code: myinstance.gotoAndStop(30); but it failed aswell.

I was sure I did it all right, but I can see somethings wrong. Do anyone know what is wrong and/or what I need to do?

(geez, that turned out to be a lot more than I thought)

Thanks:)

---

<div class="post-metadata">

**Author:** ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)\
**Post date:** [March 29, 2006, 4:39pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-problemo/183732/2 "2006-03-29T16:39:19Z")

</div>

Try using relative paths. e.g.

```auto
_parent.gotoAndStop(30);

```

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [March 29, 2006, 4:44pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-problemo/183732/3 "2006-03-29T16:44:45Z")

</div>

try

```auto
on(release){_parent.gotoAndPlay(30);}

```

or

```auto
on(releaase){this.gotoAndPlay(30);}

```

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [March 29, 2006, 4:45pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-problemo/183732/4 "2006-03-29T16:45:13Z")

</div>

Dang I am slow this morning! 😛

---

<div class="post-metadata">

**Author:** ![o111](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/o111/32/2123_2.png) [@o111](https://forum.kirupa.com/u/o111)\
**Post date:** [March 29, 2006, 6:40pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-problemo/183732/5 "2006-03-29T18:40:33Z")

</div>

[COLOR=Black]\_parent.[/COLOR][COLOR=#0000ff][COLOR=Black]gotoAndStop[/COLOR] [COLOR=Red]\<33[/COLOR]

[COLOR=Black] Thanks guys[/COLOR]:D:D  
[/COLOR]
