518
Examples
This statement displays a typical list describing a sprite:
put sprite(1).quad
-- [point(153.0000, 127.0000), point(231.0000, 127.0000), \
point(231.0000, 242.0000), point(153.0000, 242.0000)]
When modifying the
quad
sprite property, be aware that you must reset the list of points after
changing any of the values. This is because when you set a variable to the value of a property,
you are placing a copy of the list, not the list itself, in the variable. To effect a change, use
syntax like this:
-- Get the current property contents
currQuadList = sprite(5).quad
-- Add 50 pixels to the horizontal and vertical positions of the first point in the list
currQuadList[1] = currQuadList[1] + point(50, 50)
-- Reset the actual property to the newly computed position
sprite(5).quad = currQuadList
See also
rotation
,
skew
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
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
.
on beginSprite me
if the colorDepth <= 8 then
sprite(1).quality = #low
end if
end
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...