User Guide
quality 941
quality
Usage
-- Lingo syntax
memberOrSpriteObjRef.quality
// JavaScript syntax
memberOrSpriteObjRef.quality;
Description
Flash cast member and sprite property; controls whether Director uses anti-aliasing to render a
Flash movie sprite, producing high-quality rendering but possibly slower movie playback. The
quality property can have these values:
• #autoHigh—Director starts by rendering the sprite with anti-aliasing. If the actual frame rate
falls below the movie’s specified frame rate, Director turns off anti-aliasing. This setting gives
precedence to playback speed over visual quality.
• #autoLow—Director starts by rendering the movie without anti-aliasing. If the Flash player
determines that the computer processor can handle it, anti-aliasing is turned on. This setting
gives precedence to visual quality whenever possible.
• #high (default)—The movie always plays with anti-aliasing.
• #low—The movie always plays without anti-aliasing.
The
quality property can be tested and set.
Example
The following sprite script 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 quality of the sprite in
channel 5 to
#low.
-- Lingo syntax
on beginSprite me
if _system.colorDepth <= 8 then
sprite(1).quality = #low
end if
end
// JavaScript syntax
function beginSprite() {
var clrDp = _system.colorDepth;
if (clrDp <= 8) {
sprite(1).quality = symbol("low");
}
}