Download presentation
Presentation is loading. Please wait.
Published byJerome Arnold Modified over 9 years ago
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 objects in Flash 4.Examples of of Actions: Frame Actions and Object Actions(e.g. button actions, movie actions)
2
Action Script command editor environment
3
Example of some basic commands of movie action 1.goto 2.play 3.stop
4
Edit an Action script Step 1 Step 2 click Step 3 click Step 4 double click Here is the action script
5
An “a” in the frame indicates it contains a frame action
6
An Example (Bouncing Ball) Different Objects in Flash Movie Graphic Button
8
Click here to view the movie
9
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 document 5.Create a layer called ball 6.Open the library and drag the moving ball into the scene 7.Create a layer called buttons 8.Open the library and drag the button into the scene
10
Step 9 Name the movie object Ball in the properties box
11
Click to edit the Action Script Choose Expert Mode Remember to choose the Button (stop) to create actions
12
Step 10 Select the buttons layer, right click the Play button and select Actions Right click and select Actions
13
Step 11 Click Actions Movie Control on Select Press Type on(press) { Ball.Play(); }
14
Step 12 Select the buttons layer, right click the Stop button and select Actions Right click and select Actions
15
Step 13 Click Actions Movie Control on Select Press Type on(press) { Ball.Stop(); }
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.