EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 398

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
398 Chapter 12: ActionScript Dictionary
_highquality
Availability
Flash Player 4; deprecated in favor of _quality.
Usage
_highquality
Description
Deprecated property (global); specifies the level of anti-aliasing applied to the current SWF file.
Specify 2 (best quality) to apply high quality with bitmap smoothing always on. Specify 1 (high
quality) to apply anti-aliasing; this will smooth bitmaps if the SWF file does not contain
animation. Specify 0 (low quality) to prevent anti-aliasing.
Example
_highquality = 1;
See also
_quality
, toggleHighQuality()
if
Availability
Flash Player 4.
Usage
if(condition) {
statement(s);
}
Parameters
condition
An expression that evaluates to true or false.
statement(s) The instructions to execute if or when the condition evaluates to true.
Returns
Nothing.
Description
Statement; evaluates a condition to determine the next action in a SWF file. If the condition is
true, Flash runs the statements that follow the condition inside curly braces ({}). If the condition
is
false, Flash skips the statements inside the curly braces and runs the statements following the
curly braces. Use the if action to create branching logic in your scripts.
Example
In the following example, the condition inside the parentheses evaluates the variable name to see if
it has the literal value “Erica”. If it does, the play() action inside the curly braces runs.
if(name == "Erica"){
play();
}

Table of Contents

Related product manuals