How to Link Two Scenes Together With ActionScript in Flash

How to Link Two Scenes Together With ActionScript in Flash thumbnail
Move between Flash scenes using ActionScript.

Adobe Flash enables you to build animated projects using interface tools as well as the ActionScript programming language. You can organize your project into sections using the Flash scenes concept. Without interference, one scene goes automatically to the next. Flash ActionScript provides methods that enable you to switch between two specific scenes or link one to another.

Instructions

    • 1

      Launch Flash and open your source file. Locate the area of your project timeline where you want to link to another scene.

    • 2

      Click the timeline frame and press "F6" to create a keyframe.

    • 3

      Press "F9" to open the Actions window. Type the ActionScript to redirect the movie to the scene you want:

      gotoAndPlay("scene_name", 1);

      The first value represents the scene name, while the second value is the frame of that scene.

    • 4

      Save your file. Press "Ctrl" and "Enter" to test the movie.

Related Searches:

Resources

  • Photo Credit Comstock Images/Comstock/Getty Images

Comments

Related Ads

Featured