0% found this document useful (0 votes)
49 views2 pages

Next Button

The document provides instructions for adding navigation buttons to transition between scenes in an ActionScript project. It recommends labeling frames for organization and avoiding direct frame numbers. The instructions then detail adding "Forward" and "Backward" buttons to the second scene and adding ActionScript code to each to transition to the next or previous scene label on release.

Uploaded by

josephsubin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views2 pages

Next Button

The document provides instructions for adding navigation buttons to transition between scenes in an ActionScript project. It recommends labeling frames for organization and avoiding direct frame numbers. The instructions then detail adding "Forward" and "Backward" buttons to the second scene and adding ActionScript code to each to transition to the next or previous scene label on release.

Uploaded by

josephsubin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Next button: For Action Script 2.

0, right-click on the button, hit F9 and add to the Actions-Button panel: on (release) { gotoAndPlay (2); }

Next scene
NOTE

Labels and actions do not have to go on their own layers. However, it's a good way to stay organized, especially as your movies get more and more complex. I recommend doing it, even if there's only one frame label or only one frame action. I also strongly recommend always using frame labelsdon't use frame numbers. Your ActionScript is less likely to have bugs down the road if you use frame labels.

Now let's add the two buttons on the second scene/slide.

1.

Open up Scene 2.

2.

Open up the Library if it isn't already open.

3.

Go to the last frame in the movie (40) on the empty button layer.

4.

Insert

Keyframe.

5.

Drag the Backward button and the Forward button to the stage and place them wherever you like.

6.

Click on the Forward button.

7.

Open up the Actions panel if it isn't open.

8.

Enter the following code:

9.

on(release)

10. { 11. } gotoAndPlay("Scene 3","slide3");

12. Click on the Backward button.

13. Enter the following code:

14. on(release)

15. { 16. } gotoAndPlay("Scene 1","slide1");

17. Save the file and Control

Test Movie.

You might also like