Lingo Dictionary > O-R > quality |  |

quality

Syntax

    sprite(whichFlashSprite).quality
    the quality of sprite whichFlashSprite
    member(whichFlashMember).quality
    the quality of member whichFlashMember

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

This 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`.

    on beginSprite me
    	if the colorDepth <= 8 then
    		sprite(1).quality = #low
    	end if
    end