• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Appendix C. Summary of the Actions Category

Appendix C. Summary of the Actions Category

Descriptions of Actions
Action Syntax Key Sequence Description
break break; Esc + br Breaks out of a looping statement (for, for in, do while, or while).
call call (frame); Esc + ca Performs the script attached to a specified frame label. This action is deprecated, so the action function should be used.
comment // comment Esc + // Allows text to be included within the Actions List for commentary only.
continue continue; Esc + co Makes Flash skip the rest of the actions within a looping statement and jump to where the condition is tested.
delete delete variable; Esc + da Removes a variable.
do while
								do {
 statement;
} while (condition);
							

Esc + do Creates a loop that performs statements as long as the specified condition is true.
duplicateMovieClip
duplicateMovieClip
(target, newname,
								depth);
							

Esc + dm Creates a copy of a movie-clip instance.
else
								else {
  statement;
								}
							

Esc + el Specifies the statements to be performed when the condition in an if statement is false.
else if
else if (condition) {
  statement;
}

Esc + ei Specifies the statements to be performed for an alternative condition.
evaluate expression; Esc + ev Adds a new statement line in the Actions List to evaluate an expression.
for
for (init; condition;
								next) {
  statement;
}

Esc + fr Creates a loop that performs statements as long as the specified condition is true. The condition is usually a counter that increases or decreases with each loop.
for..in
for (iterator
in object) {
  statement;
}

Esc + fi Creates a loop that performs statements on the properties of an object or elements in an array.
fsCommand
fscommand
(command, arguments);
							

Esc + fs Sends commands to JavaScript in the browser environment, or to the Flash Player or Projector to control playback.
function
function name
(parameters) {
  statement;
}

Esc + fn Defines statements that perform a certain task given a set of parameters. Use function to create custom classes and methods.
getURL
getURL (URL, window, 
								variables);

Esc + gu Loads the file at a specified URL (absolute Internet address or relative path) in a browser window. Provides optional arguments specifying the CGI GET or POST method.
goto
gotoAndPlay
(scene, frame);
gotoAndStop
(scene, frame);
nextFrame();
previousFrame();
nextScene();
previousScene();

Esc + go Sends the playhead to the specified scene, frame number or frame label, and plays or stops there.
if
if (condition) {
  statement;
}

Esc + if Specifies the statements to be performed when a certain condition is true.
ifFrameLoaded
ifFrameLoaded
(scene, frame) {
  statement;
}

Esc + il Specifies the statements to be performed when a certain frame of a scene has been downloaded. This action is deprecated, so the property_framesloaded should be used.
include #include (path) Esc + in Incorporates ActionScript from an external text document.
loadMovie
loadMovieNum or
loadMovie (URL,
								levelortarget,
								variables);

Esc + lm Loads an external SWF file into a level or into a movie clip. Provides optional arguments specifying the CGI GET or POST method.
loadVariables
loadVariablesNum or
loadVariables (URL,
								levelortarget,
								variables);

Esc + lv Loads variables from an external text document into a level or a movie clip. Provides optional arguments specifying the CGI GET or POST method.
on
on (mouseEvent) {
  statement;
}

Esc + on Specifies the statements to be performed when a certain mouse event or key event occurs. The on handler is always assigned to a button instance.
onClipEvent
onClipEvent 
(clipEvent) {
  statement;
}

Esc + on Specifies the statements to be performed when a certain clip event occurs. The onClipEvent handler is always assigned to a movie-clip instance.
play play(); Esc + pl Begins playing the movie from the current position of the playhead.
print
print (location,
								boundingbox);

Esc + pr Prints the contents of frames.
removeMovieClip
								removeMovieClip
(target);

Esc + rm Removes a duplicate movie-clip instance.
return return value; Esc + rt Returns a value calculated from a function.
set variable variable = value; Esc + sv Assigns a value to a variable.
setProperty
setProperty 
(target, property,
								value);

Esc + sp Assigns a value to a property of a movie-clip instance or to a property of the entire movie.
startDrag
startDrag (target,
								centered, L, T, R, B);

Esc + dr Makes the specified movie clip follow the pointer.
stop stop(); Esc + st Stops the playhead.
stopAllSounds stopAllSounds (); Esc + ss Stops all sounds from playing.
stopDrag stopDrag(); Esc + sd Stops the movie clip from following the pointer caused by the startDrag action.
tellTarget
tellTarget (target) {
statement;
}

Esc + tt Specifies the statements to be performed on a movie clip of a certain target path. This action is deprecated, so the with action or dot syntax should be used.
toggleHighQuality toggleHighQuality (); Esc + tq Turns antialiasing on or off, affecting the entire movie. This action is deprecated, so the property _quality should be used.
trace trace (message); Esc + tr Displays an expression in the Output window in testing mode.
unloadMovie
								unloadMovieNum or
								unloadMovie
(levelortarget);

Esc + um Removes a loaded movie from a level or a movie clip.
var var variable = value Esc + vr Defines local variables that are contained within a function.
while
while (condition) {
  statement;
}

Esc + wh Creates a loop that performs statements as long as the specified condition is true.
with
with (object) {
  statement;
}

Esc + wt Specifies the statements to be performed on an object or movie clip of a certain target path.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint