# GotoAndPlay?

**URL:** <https://forum.kirupa.com/t/gotoandplay/63843>\
**Category:** Uncategorized\
**Created:** [September 10, 2004, 2:31pm UTC](https://forum.kirupa.com/t/gotoandplay/63843 "2004-09-10T14:31:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tj\_davies](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@tj\_davies](https://forum.kirupa.com/u/tj_davies)\
**Post date:** [September 10, 2004, 2:31pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/1 "2004-09-10T14:31:12Z")

</div>

Hiya,  
this is probably an easy one, but I just can’t work it out. Just followed a tutorial to build a drop down menu, which works perfectly. But I can’t make the buttons in the drop down menu jump to another scene!

Is it maybe because the buttons that have the action script are inside a movie clip(which they need to be to get the drop down effect!)?

Or is there a different action script for drop down buttons (I used: on (release) {GotoAndPlay(“Scene 2”,“1”)} )

Thanks for anyone’s help

Tim

---

<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:** [September 10, 2004, 2:50pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/2 "2004-09-10T14:50:30Z")

</div>

> [@tj\_davies](#):
>
> Hiya,  
> this is probably an easy one, but I just can’t work it out. Just followed a tutorial to build a drop down menu, which works perfectly. But I can’t make the buttons in the drop down menu jump to another scene!
> 
> Is it maybe because the buttons that have the action script are inside a movie clip(which they need to be to get the drop down effect!)?
> 
> Or is there a different action script for drop down buttons (I used: on (release) {GotoAndPlay(“Scene 2”,“1”)} )
> 
> Thanks for anyone’s help
> 
> Tim

Well for me, Ive never used scenes for the fact that a LOT of designers prefer to use external flash files to load sections w/ preloaders, therefore your flash site would be more modularized, may I suggest using actionscripting to goto a certain frame, or load movies, I’ve noticed a ton of ppl having problems with scenes lol, a few years ago i was playing with scenes, then realized theres a reasaon why the good designers barely use them 😛

---

<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:** [September 10, 2004, 2:59pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/3 "2004-09-10T14:59:26Z")

</div>

Thanks,

I’ll have to learn all this action scripting first! Does anyone know, whether there is a way to jump scenes from inside a movie clip. The main mc does not have any action script, so there shouldn’t be any interence.  
Thanks  
Tim

---

<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:** [September 10, 2004, 3:09pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/4 "2004-09-10T15:09:00Z")

</div>

I agree with Snypa|2 about the scenes. Anyway in your case use  
on (release) {\*\*\_root.\*\*GotoAndPlay(“Scene 2”,“1”)} as your button is inside a MC  
and you want the root to move

---

<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:** [September 10, 2004, 3:12pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/5 "2004-09-10T15:12:45Z")

</div>

Thanks,

already tried \_root., but it still goes back to scene 1, instead of scene 2. Hmm, maybe I really have to get into action script!

Tim

---

<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:** [September 10, 2004, 3:14pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/6 "2004-09-10T15:14:11Z")

</div>

I hope you know that in your gotoAndPlay(“Scene 2”,[color=red]“1”[/color]) \ the “1” involves that you have a frame somewhere in your second scene **named** 1. It’s not at all reffering to the first frame.  
if you wanted to jump to first frame of somescene you put  
gotoAndPlay(“somescene”,1); \ without the “”

---

<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:** [September 10, 2004, 3:24pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/7 "2004-09-10T15:24:28Z")

</div>

Well, I’ve never used scenes but a work around your problem is  
on (release) {\_root.GotoAndPlay(“Last frame of scene one”)} where “Last frame of scene one” is the number of the last frame of scene 1. It will play through to the next scene.

SHO

---

<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:** [September 10, 2004, 3:24pm UTC](https://forum.kirupa.com/t/gotoandplay/63843/8 "2004-09-10T15:24:36Z")

</div>

Thanks,  
I managed to get it working. Scene jumps don’t seem to work but jumping to an instance in a different scene works. Hurray. Thanks a lot again for all your input!

Tim
