![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 635](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720635.webp)
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.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...