MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 941

Director scripting reference
Table of Contents

Advertisement

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
property can have these values:
quality
—Director starts by rendering the sprite with anti-aliasing. If the actual frame rate
#autoHigh
falls below the movie's specified frame rate, Director turns off anti-aliasing. This setting gives
precedence to playback speed over visual quality.
—Director starts by rendering the movie without anti-aliasing. If the Flash player
#autoLow
determines that the computer processor can handle it, anti-aliasing is turned on. This setting
gives precedence to visual quality whenever possible.
(default)—The movie always plays with anti-aliasing.
#high
—The movie always plays without anti-aliasing.
#low
The
property can be tested and set.
quality
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");
}
}
.
quality
941

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

This manual is also suitable for:

Director mx 2004

Table of Contents