Using scenes in flash can have vast benefits for your work, enabling the viewer to easily jump around the file (similar to frame labels) but with much more stability. You can use scenes to easily organise your flash file, for example if you were creating a flash website each page of the site can be created as a scene (Pre-loader, home, contact etc). Scenes in a flash file will always play in order, unless you tell them otherwise. So how do we create scenes? And how do we put them to use? I’ll show you!
STEP 1
First off create a new flash file, framerate 30. Rename the first layer to ’stuff’ and create a new layer called actions. On the first frame of the stuff layer, draw a shape, face, animation or whatever floats your boat, just so we have something to work with. I have used our old friend ‘blob’ from earlier tutorials. I created a short motion tween from frames 1-70, just so we can see some movement on the scene.
STEP 2
On the left under your timeline, you can see what scene you are currently editing:

Go to Window > Other Panels > Scene to open up the scenes panel This will display all of your scenes, and allows you to create new, duplicate, rename and remove scenes.

Select scene 1 in this panel, and click the duplicate button. This wll make a new scene called ‘Scene 1 copy’. Rename this to Scene 2.
Select this scene, you will notice the selected scene on stage changes as you do:

STEP 3
With Scene 2 selected, create a different animation. This is purely so we can see the differences between the two scenes. Once you have done this, hit CTRL+enter and see how the movie plays Scene 1, then carries on instantly into Scene 2. Duplicate Scene 2, and create another variation on the stage to distinguish the three scenes from each other.
STEP 4
With Scene 3 selected, select the actions layer and create a new keyframe on the last frame of this Scene’s animation. Hit f9 to enter the actions panel and enter the following code:
gotoAndPlay("Scene 2", 1);
This will tell the movie to go to Scene 2, and play from frame 1. From here on in it works much the same as frame labels!
Have a play around, and i’m sure you’ll find scenes to be a very useful tool!
The Dude
Did this tutorial help you? If so, click the bookmark button, stumble me, add me to your twitter and tell your friends! Alternatively, sign up and leave a comment!
Not what you were looking for? Then leave a comment or email me and we’ll get you the tutorials you need.
Did this post help you? If so help us continue to grow and Digg this page or Share on Twitter!
If you haven't already, sign up to our RSS feed or register to recieve updates direct to your email!








Good Tutorial! It was chosen for the main page of http://www.tutorialsroom.com
Please submit all of your future quality tutorials in there.
Hi I am making up a webpage but new to it all and this tutorial is good help but how do I use buttons to go to each scene if you can help that would be great.
Paul
Paul - to link buttons first create them by selecting an image and pressing f8. Then select button. Now double click the button symbol in the library panel and in the actions panel type the following.
on(release) {
nextScene();
}
This will link it to the next scene. If it needs to be linked to other scenes, dont ask me i havent got a clue. Good Luck!
Outstanding tutorial. I am just now taking a Flash course and got a little stuck on one of my lessons until I found your site. Just great and will be passing it on to as many of my class mates as will listen to me. Great Job and Thank YOu
[...] more from the original source: Using Scenes in Flash (AS2) | FREE flash tutorials | The Dude [...]
Hi!
Iv’e got some problems… I’m bussy with a portfolio site and i made a drop down menu. The drop downmenu is in a movieclip but i want the buttons that are in that mc to give orders to my regular (scene1) scene. I tried to use your code
on (release) {
GotoAndPlay(”Scene 1″, news);
}
But he just won’t work…
Can you please help me
Number-one@live.nl
Thanks!
this is a great tutorial and it helped me a lot!