Unit Lessons Work with actions OVERVIEW Unit Lessons Work with actions Work with targets and movie clip symbols Create interactive movie clip symbols Define variables Using Basic ActionScript
Using Basic ActionScript INTRODUCTION Using Basic ActionScript Use ActionScript: To create interactive movies To add actions to a frame, button, or movie clip symbol Using Basic ActionScript
LESSON 1 Work with Actions Use ActionScript and frame labels to create navigation to specific frames on the timeline Work in expert mode in the Actions panel Using Basic ActionScript
Referencing the Timeline in Actions LESSON 1 Referencing the Timeline in Actions Use a frame number or frame label to reference the timeline in actions A frame label is a text name for a keyframe Add a label to a frame using the Frame Property inspector Using Basic ActionScript
A Frame Label A small red flag appears in labeled frames LESSON 1 Using Basic ActionScript
Creating A Frame Label Specify name of the frame label LESSON 1 Using Basic ActionScript
Actions Panel in Expert Mode LESSON 1 Actions Panel in Expert Mode Using Basic ActionScript
Adding an Action in Expert Mode LESSON 1 Adding an Action in Expert Mode Using Basic ActionScript
Using the Actions Panel in Expert Mode LESSON 1 Using the Actions Panel in Expert Mode Display the Actions panel in expert mode: To write ActionScript directly in the Script pane To select action names from the Actions toolbox To copy and paste actions in the Script pane Using Basic ActionScript
How it can be used: Use ActionScript to control movie clip timelines LESSON 2 How it can be used: Use ActionScript to control movie clip timelines Use ActionScript to control the timeline of a nested movie clip symbol Copy ActionScript between objects in expert mode Using Basic ActionScript
LESSON 2 How it can be used: Creating actions that run a specific frame within the movie clip symbol’s timeline Making a movie clip draggable Using Basic ActionScript
Naming a Movie Clip Symbol Instance LESSON 2 Naming a Movie Clip Symbol Instance Type the name in this field Using Basic ActionScript
Referencing Movie Clip Symbols as ActionScript Targets LESSON 2 Referencing Movie Clip Symbols as ActionScript Targets To control movie clip symbols and their timelines with ActionScript, target the movie clips: Using Basic ActionScript
ActionScript Statement Using Dot Syntax LESSON 2 ActionScript Statement Using Dot Syntax Dot syntax statement referring to a nested movie clip symbol Using Basic ActionScript
Understanding Interactive Movie Clips LESSON 3 Understanding Interactive Movie Clips With the startDrag and stopDrag actions, a movie clip can be draggable while a movie is playing Using Basic ActionScript
Draggable Movie Clips in a Macromedia Flash Game LESSON 3 Draggable Movie Clips in a Macromedia Flash Game Each checker is a movie clip symbol, which you can drag to a square Using Basic ActionScript
ActionScript to Make the Movie Clip Draggable LESSON 3 ActionScript to Make the Movie Clip Draggable Using Basic ActionScript
Creating Conditional Statements LESSON 3 Creating Conditional Statements When creating conditions in ActionScript : Use two equals signs (==) to check if the variable meets the condition. Enclose all the actions to be carried out in braces following the if action Using Basic ActionScript
Example of a Conditional ActionScript Statement LESSON 3 Example of a Conditional ActionScript Statement Using Basic ActionScript
Define Variables Create an input text box Create a dynamic text box LESSON 4 Define Variables Create an input text box Create a dynamic text box Use ActionScript to collect and modify string variables Use ActionScript to collect and perform mathematical operations on numeric variables Using Basic ActionScript
Understanding Variables LESSON 4 Understanding Variables A variable is a container that holds information To create a string variable, place quotations marks around the string Using Basic ActionScript
Using Text Fields to Collect User Information LESSON 4 Using Text Fields to Collect User Information An input text field takes information entered by a user and stores it as a variable A dynamic text field displays information derived from variables Using Basic ActionScript
Understanding Expressions LESSON 4 Understanding Expressions Expressions are formulas for manipulating or evaluating the information in variables Logical expressions perform true/false comparisons on numbers and string Using Basic ActionScript
Drawing the Text Box for the Input Text Field LESSON 4 Drawing the Text Box for the Input Text Field Input text field Using Basic ActionScript
Using the Property Inspector to Create an Input Text Field LESSON 4 Using the Property Inspector to Create an Input Text Field Type the variable name Using Basic ActionScript
Creating the Dynamic Text Field LESSON 4 Creating the Dynamic Text Field Tape a variable name Using Basic ActionScript