User Guide
572
• #noScale—preserves the original size of the Flash media, regardless of how the sprite is sized on
the Stage. If the sprite is made smaller than the original Flash movie, the movie displayed in the
sprite is cropped to fit the bounds of the sprite.
• #autoSize (default)—This specifies that the sprite rectangle is automatically sized and
positioned to account for rotation, skew, flipH, and flipV. This means that when a Flash sprite
is rotated, it will not crop as in earlier versions of Director. The
#autoSize setting only
functions properly when
scale, viewScale, originPoint, and viewPoint are at their default values.
This property can be tested and set.
Example
The following sprite script checks the Stage color of the Director movie and, if the Stage color is
indexed to position 0 in the current palette, the script sets the
scaleMode property of a Flash movie
sprite to #
showAll. Otherwise, it sets the scaleMode property to #noBorder.
on beginsprite me
if the stagecolor = 0 then
sprite(me.spriteNum).scaleMode = #showAll
else
sprite(me.spriteNum).scaleMode = #noBorder
end if
end
See also
scale
score
Syntax
the score
Description
Movie property; determines which Score is associated with the current movie. This property can
be useful for storing the current contents of the Score before wiping out and generating a new one
or for assigning the current Score contents to a film loop.
This property can be tested and set.
Example
This statement assigns the film loop cast member Waterfall to the Score of the current movie:
the score = member("Waterfall").media