15
What is Action Script 1. It is a programming language used in Flash 2. It is a language derived from JavaScript 3. It is an interactive language to control objects in Flash 4. Examples of of Actions: Frame Actions and Object Actions(e.g. button actions, movie actions)

What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Embed Size (px)

Citation preview

Page 1: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

What is Action Script

1. It is a programming language used in Flash2. It is a language derived from JavaScript3. It is an interactive language to control objects in Flash4. Examples of of Actions:

Frame Actions and Object Actions(e.g. button actions, movie actions)

Page 2: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Action Script command editor environment

Page 3: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Example of some basic commands of movie action

1. goto2. play3. stop

Page 4: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Edit an Action script

Step 1 Step 2click

Step 3click

Step 4

doubleclick

Here is the action script

Page 5: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

An “a” in the frame indicates it contains a frame action

Page 6: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

An Example (Bouncing Ball)

Different Objects in Flash

Movie

Graphic

Button

Page 7: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control
Page 8: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Click here to view the movie

Page 9: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Steps of making the bouncing ball

1. Create the ball and the floor in graphic symbol

2. Use the ball to make a movie called moving ball

3. Create the two buttons (play and stop)

4. Open a new document5. Create a layer called ball6. Open the library and drag the moving ball into the

scene7. Create a layer called buttons8. Open the library and drag the button into the scene

Page 10: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Step 9 Name the movie object Ball in the properties box

Page 11: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Click to edit the Action Script Choose Expert Mode

Remember to choose the Button (stop) to create actions

Page 12: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Step 10 Select the buttons layer, right click the Play button and select Actions

Right click and select Actions

Page 13: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Step 11 Click Actions Movie Control on Select Press

Type on(press) { Ball.Play(); }

Page 14: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Step 12 Select the buttons layer, right click the Stop button and select Actions

Right click and select Actions

Page 15: What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control

Step 13 Click Actions Movie Control on Select Press

Type on(press) { Ball.Stop(); }