# Button embedded in a movie

**URL:** <https://forum.kirupa.com/t/button-embedded-in-a-movie/943>\
**Category:** Uncategorized\
**Created:** [August 3, 2002, 5:21pm UTC](https://forum.kirupa.com/t/button-embedded-in-a-movie/943 "2002-08-03T17:21:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobinL](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/robinl/32/40_2.png) [@RobinL](https://forum.kirupa.com/u/RobinL)\
**Post date:** [August 3, 2002, 5:21pm UTC](https://forum.kirupa.com/t/button-embedded-in-a-movie/943/1 "2002-08-03T17:21:47Z")

</div>

I have a movie, in which is embedded three buttons. On release I want these buttons to move to the next frame of the main movie. I can’t seem to get this to work with the following syntax. What am I doing wrong?

on (release) {  
gotoAndStop(“Scene 1”, 6);  
}

---

<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:** [August 3, 2002, 5:41pm UTC](https://forum.kirupa.com/t/button-embedded-in-a-movie/943/2 "2002-08-03T17:41:40Z")

</div>

I dont get what you’re asking. You’re asking how to move the buttons?

---

<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:** [August 4, 2002, 1:05pm UTC](https://forum.kirupa.com/t/button-embedded-in-a-movie/943/3 "2002-08-04T13:05:43Z")

</div>

No…maybe they are not ‘embedded’ if that means something in FLash terminology. Basically within the movie, which is a symbol, I have some buttons (which are used elsewhere in the movie). They work when they are placed normally within the main move (scene 1). However, as soon as I try to get them to be ‘clickable’ within the symbol, they nop longer work, even when scene 1 is referenced.

Hope that made a bit more sense…

---

<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:** [August 4, 2002, 2:27pm UTC](https://forum.kirupa.com/t/button-embedded-in-a-movie/943/4 "2002-08-04T14:27:24Z")

</div>

OK. I can make the question more easy.

On a button click in a movie, the playhead moves to the next frame in the movie. This frame includes a symbol that is a movie. This plays as soon as the playhead reaches the frame holding the symbol. I want the playhead in the main movie to move back to the frame where the original button was as soon as the symbol movie finishes playing.

I have tried placing the gotoandstop action on the final frame of the movie, but using this I can only navigate the playhead in the symbol, even when refering to the main movie, scene 1, as follows:

gotoAndStop(“Scene 1”, 5);

Surely what I want to do is really easy?!

---

<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:** [August 4, 2002, 5:32pm UTC](https://forum.kirupa.com/t/button-embedded-in-a-movie/943/5 "2002-08-04T17:32:28Z")

</div>

Try

```php
_root.gotoAndPlay(5);

```

pom :asian:

---

<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:** [August 4, 2002, 6:55pm UTC](https://forum.kirupa.com/t/button-embedded-in-a-movie/943/6 "2002-08-04T18:55:06Z")

</div>

ahhhh

Thanks a lot that works fine 🙂
