|
ActionScript tutorial
ActionScript is the scripting language of Macromedia Flash. A scripting language is a way to communicate with a program; you can use it to tell Flash what to do and to ask Flash what is happening as a movie runs. This two-way communication lets you create interactive movies. In this tutorial, you will examine the tasks involved in creating an interactive puzzle.
To complete the ActionScript tutorial, you'll take advantage of Flash 5 features beyond what you learned in the lessons and the Using Flash tutorial, and you'll learn more about creating an interactive movie. The tutorial is designed for Flash users who are ActionScript beginners but who want to work towards advanced abilities. You should already be familiar with basic actions and know how to assign them in the Actions panel. To get the most out of this tutorial, you should first complete the tutorial in the Using Flash manual. You should also be comfortable with the concepts presented in the chapter "Creating Interactive Movies" in the Using Flash manual.
To complete the Using Flash tutorial, in Flash choose Help > Using Flash and select the Tutorial.
Before you begin, you will need to download either of the following files:
Download the Windows source file actionscript_tutorial.zip (1.7MB)
Download the Macintosh source file actionscript_tutorial.sea.hqx (2.4MB)
The tutorial takes approximately 1 hour to complete, depending upon your experience, and focuses on the following tasks:
- View the completed movie
- Initialize the movie
- Set movie clip properties
- Save and retrieve information
- Declare a variable and assign it a value
- Display information in a dynamic text box
- Write an expression
- Control the flow of the movie
- Write a conditional statement
- Create commands and reuse code
- Write a function
- Call a function
- Use a built-in object
- Test the movie
- The next steps
|