# Actionscript on buttons nested in movie clip

**URL:** https://forum.kirupa.com/t/actionscript-on-buttons-nested-in-movie-clip/11469
**Category:** flash
**Created:** [January 17, 2003, 3:55pm UTC](https://forum.kirupa.com/t/actionscript-on-buttons-nested-in-movie-clip/11469 "2003-01-17T15:55:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Venus](https://avatars.discourse-cdn.com/v4/letter/v/35a633/32.png) [@Venus](https://forum.kirupa.com/u/Venus)
#### Post date: [January 17, 2003, 3:55pm UTC](https://forum.kirupa.com/t/actionscript-on-buttons-nested-in-movie-clip/11469/1 "2003-01-17T15:55:02Z")

</div>

I need help. I’ve created a movie clip which in essence is like a drop down menu (I’ve got a main button and when the user hovers over it other buttons drop down from it - and I’ve got an off trigger and all that good stuff). So I’ve dropped an instance of this movie clip into a Flash movie and now I’m trying to apply actions to each button within the movieclip so that they will take the user to specific frames within Scene 1 of my movie.

Now according to the instructions that told me how to create the drop down menu - I’ve got to "use a with() action to navigate to other timelines. I’ve tried it and it doesn’t work. I guess I’m not sure what parameters to use the with action with.

I’m fairly new to Flash and Actionscript is definitely not my forte so be gentle with me. Any advice or words of wisdom would be appreciated.

(-:

---

<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: [January 17, 2003, 4:07pm UTC](https://forum.kirupa.com/t/actionscript-on-buttons-nested-in-movie-clip/11469/2 "2003-01-17T16:07:12Z")

</div>

try this on your button.

```php

on (release) {
    _root.gotoAndPlay("your scene", frame number);
}

```

If I understand you correctly

You need to tell it to play a movie that is on the maintimeline. That is what \_root does

---

<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: [January 17, 2003, 4:18pm UTC](https://forum.kirupa.com/t/actionscript-on-buttons-nested-in-movie-clip/11469/3 "2003-01-17T16:18:29Z")

</div>

[http://www.kirupaforum.com/showthread.php?s=&threadid=10784](http://www.kirupaforum.com/showthread.php?s=&threadid=10784)
