# \[F5\] nextScene problem

**URL:** <https://forum.kirupa.com/t/f5-nextscene-problem/22932>\
**Category:** Uncategorized\
**Created:** [June 10, 2003, 8:01pm UTC](https://forum.kirupa.com/t/f5-nextscene-problem/22932 "2003-06-10T20:01:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dshallenberger](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@dshallenberger](https://forum.kirupa.com/u/dshallenberger)\
**Post date:** [June 10, 2003, 8:01pm UTC](https://forum.kirupa.com/t/f5-nextscene-problem/22932/1 "2003-06-10T20:01:49Z")

</div>

Please forgive my ignorance if this is a simple problem. I worked around it, but I still wonder what I was doing wrong.

I setup a movie as 5 different scenes. The first scene is the loading animation that sends the user to scene 2 when it’s loaded, and then scenes 2-5 can be switched between with 4 buttons in each scene. These for buttons are on the root timeline and they work fine switching between scenes. But, I have a different button inside a mc on the root timeline that I want coded to load the next scene, but it won’t work. I tried nextScene();, gotoAndStop(“the\_scene\_name”,1);, \_root.nextScene();, and other combinations, all to no avail. But, if I put that same code in a button on the root timeline, works perfect.

What am I doing wrong? I’m sure it’s simple, but I couldn’t find a solution in Help or the manual. Also, is it better to setup something like this as different scenes, or as separate movies?

Thanks much!

Dan

---

<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:** [June 11, 2003, 4:07pm UTC](https://forum.kirupa.com/t/f5-nextscene-problem/22932/2 "2003-06-11T16:07:34Z")

</div>

Hi,  
There are lots of probs with accessing scenes, don’t know why myself, and I have read ( somewhere here) that you cannot access a scene from a button nested inside an mc.  
If you are using frame labels try  
[AS]on(release){  
\_root.gotoAndPlay(“label”);  
}[/AS]  
If you are not using labels point to the frame number but remeber that Flash counts from the first frame in the movie, i.e if you have 5 scenes with 10 frames in each, frame 7 in scene 3 will be frame 27

Hope that helps

SteveD
