# Movie Clips as buttons

**URL:** <https://forum.kirupa.com/t/movie-clips-as-buttons/9789>\
**Category:** flash\
**Created:** [December 18, 2002, 3:44pm UTC](https://forum.kirupa.com/t/movie-clips-as-buttons/9789 "2002-12-18T15:44:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skaiwayne](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@skaiwayne](https://forum.kirupa.com/u/skaiwayne)\
**Post date:** [December 18, 2002, 3:44pm UTC](https://forum.kirupa.com/t/movie-clips-as-buttons/9789/1 "2002-12-18T15:44:04Z")

</div>

I have a movie clip with a button inside. Im trying to do some as simple as on press gotoAndPlay(framename) but for some reason it wont respond. It will on press trace() and LoadMovie() but it wont respond to the frame lable or number. What is the trick to get movie clips to respond like buttons?

Thanks…

---

<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:** [December 18, 2002, 4:02pm UTC](https://forum.kirupa.com/t/movie-clips-as-buttons/9789/2 "2002-12-18T16:02:54Z")

</div>

If your button is sitting inside a movie clip then try adding an action like this to it:

```php
on (release) {
	_root.gotoAndPlay("framename");
}

```

---

<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:** [December 18, 2002, 4:15pm UTC](https://forum.kirupa.com/t/movie-clips-as-buttons/9789/3 "2002-12-18T16:15:03Z")

</div>

Yeah, because your button is inside a new MC, you have to tell it which MC (ie:the main timeline, or \_root) to move/play/stop whatever. If you go into Normal mode on the Actions panel, you’ll see there’s a little target crosshair icon. If you click on that when you’re inside your gotoAndPlay() brackets, you should be able to see all of the movie clips on the stage. Simply select he one you want to play.

---

<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:** [December 18, 2002, 4:16pm UTC](https://forum.kirupa.com/t/movie-clips-as-buttons/9789/4 "2002-12-18T16:16:32Z")

</div>

Thanks for your help guys !
