scale

Syntax: the scale of sprite whichFlashSprite
the scale of member whichFlashMember
Type: Cast member property; sprite property
Description: This property sets the amount to scale a Flash movie sprite within the sprite's bounding rectangle. The scale property is specified as a floating-point number.
The sprite rectangle itself is not scaled; instead, the Flash movie is scaled within the sprite's bounding rectangle. In effect, the sprite's bounding rectangle acts as a window through which you can see the Flash movie. The Flash movie is scaled from its origin point, as specified by its originMode property.
The scale property can be tested and set. The default setting is 100.
Example: This handler accepts a reference to a Flash movie sprite as a parameter, reduces the movie's scale to 0 (so it disappears), and then scales it up again in 5-percent increments until it is full size (100 percent) again.
on scaleMovie whichSprite
	set the scale of sprite whichSprite = 0
	updatestage
	repeat with i = 1 to 20
		set the scale of sprite whichSprite = i * 5
		updatestage
	end repeat
end

Related Lingo: scaleMode property

Previous | Next