rotation
 
Syntax SetIconProperty(@"IconTitle", #rotation, degree)

SetIconProperty(@"IconTitle", #rotation, degree)
 

Type Icon property, sprite property
 
Description  This property controls the rotation of a Flash movie sprite within the sprite's bounding rectangle. The rotation property is specified in degrees as a floating-point number.

The sprite itself doesn't rotate; instead, the Flash movie rotates 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 rotates around its origin point, as specified by its originMode property.

You can get and set the value of the rotation property. The default setting is 0.
 

Example  This routine rotates a Flash movie sprite 360 degrees in 10-degree increments.

SetIconProperty(@"Flash Icon", #obeyScoreRotation, FALSE)
repeat with i := 1 to 36
    SetSpriteProperty(@"Flash Icon", #rotation, i * 10)
end repeat

Related Functions

obeyScoreRotation property.

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