0% found this document useful (0 votes)
43 views15 pages

What Is Actionscript?: Introduction To Flash Actionscript 3.0

ActionScript is the programming language used to add interactivity to Flash movies. It allows the author to control elements like buttons, sounds, and animations. ActionScript code is placed on keyframes in the Actions panel, where the code is typed or dragged from the Actions toolbox. The Script navigator provides a centralized way to navigate between different items containing ActionScript code.

Uploaded by

gnalaglrac
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views15 pages

What Is Actionscript?: Introduction To Flash Actionscript 3.0

ActionScript is the programming language used to add interactivity to Flash movies. It allows the author to control elements like buttons, sounds, and animations. ActionScript code is placed on keyframes in the Actions panel, where the code is typed or dragged from the Actions toolbox. The Script navigator provides a centralized way to navigate between different items containing ActionScript code.

Uploaded by

gnalaglrac
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 15

What is ActionScript?

Introduction to Flash ActionScript


3.0
What is ActionScript?
• ActionScript is the programming language
native to Flash
• It is a way for you (the author of a Flash
movie application) to communicate with
your Flash Document and its elements in
order to tell them what to do
• Think of ActionScript as the language that
you can use to "talk" to your Flash movie
What is ActionScript?
• You can tell your Flash movie to stop, you
can tell a button in your Flash movie to
play a sound file once it is clicked, you can
tell a MovieClip symbol in your Flash
movie to animate. You can do all these
and more using ActionScript.
What is ActionScript?
• In many instances, ActionScript is quite
similar to the English language. For
example:
stop();
• The stop() action can be used to tell a
Flash movie to STOP playing when the
playhead reaches a certain frame
What is ActionScript?
• Q: Where do I place ActionScript 3.0
code?
• A: In ActionScript 3.0, you can place
ActionScript code on frames or in external
ActionScript files.
What is ActionScript?
• NOTE: Insert a Keyframe in order to add
ActionScript to a Frame
What is ActionScript?
• Q: Where can the actual ActionScript code
by typed or added (if you are applying it to
a frame)?
• A: The Actions Panel is where the author
of the Flash Movie can type or add
ActionScript code. If you want to create an
external ActionScript file, one option
available is to use a basic text editor.
The Actions Panel
• If it's not yet open, the Actions Panel can
be opened by choosing Windows >
Actions from the main menu. The F9
keyboard shortcut (option + F9 on a Mac)
can also be used to open or close the
Actions Panel.
The Actions Panel
• The Actions Panel has 3 parts:
1. Actions Toolbox
2. Script Pane
3. Script Navigator
• The Actions Toolbox is located on the left
side of the Actions Panel and the Script
Navigator can be found below it. The
Script Pane is found on the right side.
The Actions Panel

1
0
The Actions Panel

1
1
The Actions Panel
• The Actions Toolbox contains a list of
ActionScript elements grouped together in
their respective categories.
The Actions Panel
• The Script Pane is where the actual code
can be typed in. You can also drag or
double-click on an element from the
Actions Toolbox in order to insert it into
the Script Pane.
The Actions Panel
• Before adding or typing in the ActionScript
code in the Actions Panel, you must first
select the keyframe where you would like
the ActionScript code to be located.
• ActionScript code can be placed in many
different keyframes throughout your Flash
movie.
The Actions Panel
• Below the Actions Toolbox is the Script Navigator.
The Script Navigator can be used to navigate
through the different items in a Flash Document that
contain ActionScript code. This is quite useful as it
allows the author to move quickly through all the
different items in a centralized location, as opposed
to looking for each ActionScript keyframe on the
Timeline and selecting it and then going back to the
Actions Panel. The author can simply select an item
in the Script Navigator, and the code within that item
appears in the Script Pane.

You might also like