User Guide

antiAliasingEnabled 635
Description
Cast member property; controls whether a text, Vector shape, or Flash cast member is rendered
using anti-aliasing to produce high-quality rendering, but possibly slower playback of the movie.
The
antiAlias property is TRUE by default.
For vector shapes,
TRUE is the equivalent of the #high quality setting for a Flash asset, and FALSE
is the equivalent of
#low.
The
antiAlias property may also be used as a sprite property only for Vector shape sprites.
This property can be tested and set.
Example
This behavior checks the color depth of the computer on which the movie is playing. If the
color depth is set to 8 bits or less (256 colors), the script sets the
antiAlias property of the
sprite to
FALSE.
--Lingo syntax
property spriteNum
on beginsprite me
if _system.colorDepth <= 8 then
sprite(spriteNum).antiAlias = FALSE
end if
end
// JavaScript syntax
function beginsprite() {
var cd = _system.colorDepth;
if (cd <= 8 ) {
sprite(this.spriteNum).antiAlias = 0;
}
}
See also
antiAliasThreshold, quality
antiAliasingEnabled
Usage
sprite(whichSprite).antiAliasingEnabled
Description
3D sprite property; indicates whether the 3D world in the sprite whichSprite is anti-aliased. It
can be tested and set. The default value is
FALSE, indicating that anti-aliasing is off. If the
antiAliasingEnabled property is set to TRUE and the 3D renderer changes to a renderer that
does not support anti-aliasing, the property is set to
FALSE. The value of this property is not saved
when the movie is saved.
Anti-aliased sprites use more processor power and memory than sprites that are not anti-aliased.
Temporarily turning off anti-aliasing can improve the performance of animations and user
interaction.