|
|
| |
Dear
Friend,
Hello, & welcome back to FIREWIRE,
your friendly guide to the exciting world of web-design
& web-solutions! In the previous newsletter of Flash
5 Tutorial Series we had discussed about Window Properties,
Movie Explorer, Preview & Bandwith, Status, Controller,
Save, Save as, Import, Export, Publish, Output Window
& Debugger.Now lets start with the scripting
part i.e. Introduction to Action Script, Action Palette
& Events. |
 |
|
Action script is used to create interactivity and
navigation for a movie file. It is an object-oriented
programming language similar to JavaScript. Objects
in action script can be data or movie clips. Each and
every interaction is based upon the actions and event
handlers.
Behaviors
are referred as actions in flash. Flash has two types
of action script. They are:
|
|
Frame
action
|
|
|
Object
action |
| Frame
Action |
|
It is used to control the frame and it can be assigned
only to key frame. If the specified frame consists
of an action script then a small "a" will
be displayed in the key frame. Select the frame
for which, action script is needed and specify the
script. Frame action is available in normal and
expert mode. |
| Object
Action |
|
Object action can be specified only to button,
movie clips. While assigning action to objects,
flash assigns automatically a special action called
"handler".
Depending
upon the object, handlers will be set. Object
action is also available in two modes i.e. normal
and expert mode.
|
In
action palette, there are two icons in the bottom.
- Using
the insert target path icon we can insert target for
movie clips.
- Using
expand and collapse icon, we can either expand or
collapse the parameters area.
If
the action statement has parameters, then a parameter
window appears at the bottom of action palette.
From
the side arrow, special menus are available for action
palette. Automatically, the palette will change for
object and frame actions but the commands remain the
same for both the palettes.
|
 |
|
In
Action Palette, there are two modes. They are
| Normal
Mode |
|
In
this mode, actions are created by selecting
actions from the left panel, tool box list.
The tool box list contains basic action,
actions, operators, functions, properties
and object. Selection and deletion in action
palette is done through the "+"
and "-" buttons.
|
| Expert
Mode |
|
Actions
are given in the right panel which acts
as a text box in expert mode. Editing, entering
parameters, deletion can be done directly
on the text box. Expert mode differs from
normal mode. In expert mode, parameter window
is not available. The "+" symbol
and scroll bars alone are available.
|

|
| Go
to Line |
|
This
command helps to reach the specified line
instead of scrolling. This command helps
a lot in lengthy scripts. It acts as a search
engine within a script.
|
| Find
|
|
This
command help us to find a string or word
within the script statements. Keywords and
commands of action script cannot be used
in this command. The case of the word can
also be matched in this command.
|
| Find
Align |
|
This
command is used to find the occurrence of
a string/word within the script statements.
|
| Replace
|
|
Using
this command, we can replace a word by another
word.
|
|
|
|
|
|
|