scale
 
Syntax SetIconProperty(@"IconTitle", #scale, percent)

SetIconProperty(@"IconTitle", #scale, percent)
 

Type Icon 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.

You can get and set the value of the scale property. The default setting is 100.
 

Example  This routine reduces the movie's scale to 0 (so it disappears), and then scales it up in 5-percent increments until it's full size (100 percent).

SetSpriteProperty(@"Flash Icon", #scale, 0)
repeat with i := 1 to 20
    SetSpriteProperty(@"Flash Icon", #scale, i * 5)
end repeat
Related Functions scaleMode property

To Table of Contents Back to Previous document Forward to next document