Lingo Dictionary > A-C > antiAlias |  |

antiAlias

Syntax

    member(whichMember).antiAlias
    sprite(whichVectorSprite).antiAlias

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` of the sprite to `FALSE`.

    property spriteNum
    on beginsprite me
    	if the colorDepth <= 8 then
    		sprite(spriteNum).antiAlias = FALSE
    	end if
    end

See also

`antiAliasThreshold`, `quality`