Lingo Dictionary > S > scaleMode |
![]() ![]() ![]() |
scaleMode
Syntax
sprite(
whichVectorOrFlashSprite
).scaleMode
the scaleMode of sprite
whichVectorOrFlashSprite
member(
whichVectorOrFlashMember
).scaleMode
the scaleMode of member
whichVectorOrFlashMember
Description
Cast member property and sprite property; controls the way a Flash movie or vector shape is scaled within a sprite's bounding rectangle. When you scale a Flash movie sprite by setting its scale
and viewScale
properties, the sprite itself is not scaled; only the view of the movie within the sprite is scaled. The scaleMode
property can have these values:
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
This property can be tested and set.
Example
This 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
![]() ![]() ![]() |