viewScale

Syntax: the viewScale of sprite whichFlashSprite
the viewScale of member whichFlashMember
Type: Cast member property; sprite property
Description: This property sets the overall amount to scale the view of a Flash movie sprite within the sprite's bounding rectangle. The viewScale property is a specified as a percentage using a floating-point number.
The sprite rectangle itself is not scaled, only the view of the movie within the rectangle. Setting the viewScale property of a sprite is like choosing a lens for a camera. As the viewScale decreases, the apparent size of the movie within the sprite increases, and vice versa. For example, setting the viewScale property to 200 percent means the view inside the sprite now shows twice the area it once did, and the movie inside the sprite appears half its original size.
One significant difference between the viewScale and scale properties is that the viewScale always scales from the center of the sprite's bounding rectangle, whereas the scale property scales from a point determined by the Flash movie's originMode property.
The viewScale property can be tested and set. The default setting is 100.
Example: This sprite script sets up a Flash movie sprite and doubles its view scale.
on beginSprite me
	set the viewScale of sprite the spriteNum of me = 200
end

Related Lingo: viewH property, viewV property, viewPoint property

Previous | Next