Action
Description
goto
Jump to a frame or scene in another part of the movie.
play
Start a movie at certain points at which the movie may have been stopped.
stop
Stop a movie.
toggleHighQuality
Turn anti-aliasing on and off. When it is turned off, the movie is able to play faster,
but renders with rough edges.
stopAllSounds
Stop the sound track without affecting the movie.
getURL
Load a URL into a new or existing browser window.
FSCommand
Insert JavaScript or other scripting languages into a Flash movie.
loadMovie/
unloadMovie
Load a SWF or JPEG file into the Flash Player from the current movie. Can also
load another SWF into a particular movie.
ifFrameLoaded
Check whether certain frames have been loaded.
onClipEvent
Assigns actions to a movie clip based on specific events. The events include
load
,
unLoad
,
enterFrame
,
mouseUp
,
mouseDown
,
mouseMove
,
keyUp
,
keyDown
and
data
.
on
Assign actions such as
Press
,
Release
and
RollOver
to a button.
if
Set up condition statements that run only when the condition is true.
while/do while
Run a collection of statements while a condition statement is true.
setProperty
Change the attributes of a movie clip while the movie plays.
duplicateMovieClip/
removeMovieClip
Dynamically add a movie clip to a movie or remove a clip from a movie.
startDrag/stopDrag
Move a movie clip while the movie is running.
trace
Display programming notes or variable values while testing a movie.
//
(comment)
Keep track of personal notes in a frame or action for future reference.
Fig. 17.55
Additional ActionScript functions.
Comentarios a estos manuales