Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit Lessons Work with actions

Similar presentations


Presentation on theme: "Unit Lessons Work with actions"— Presentation transcript:

1

2 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

3 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

4 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

5 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

6 A Frame Label A small red flag appears in labeled frames LESSON 1
Using Basic ActionScript

7 Creating A Frame Label Specify name of the frame label LESSON 1
Using Basic ActionScript

8 Actions Panel in Expert Mode
LESSON 1 Actions Panel in Expert Mode Using Basic ActionScript

9 Adding an Action in Expert Mode
LESSON 1 Adding an Action in Expert Mode Using Basic ActionScript

10 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

11 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

12 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

13 Naming a Movie Clip Symbol Instance
LESSON 2 Naming a Movie Clip Symbol Instance Type the name in this field Using Basic ActionScript

14 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

15 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

16 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

17 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

18 ActionScript to Make the Movie Clip Draggable
LESSON 3 ActionScript to Make the Movie Clip Draggable Using Basic ActionScript

19 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

20 Example of a Conditional ActionScript Statement
LESSON 3 Example of a Conditional ActionScript Statement Using Basic ActionScript

21 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

22 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

23 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

24 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

25 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

26 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

27 Creating the Dynamic Text Field
LESSON 4 Creating the Dynamic Text Field Tape a variable name Using Basic ActionScript


Download ppt "Unit Lessons Work with actions"

Similar presentations


Ads by Google