| Syntax: |
the rotation of sprite whichFlashSprite |
|
the rotation of member whichFlashMember
|
| Type: |
Cast member 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 does not 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.
|
|
The rotation property can be tested and set. The default setting is 0.
|
| Example: |
This handler accepts a sprite reference as a parameter and rotates a Flash movie sprite 360 degrees in 10-degree increments. |
|
on rotateMovie whichSprite
repeat with i = 1 to 36
set the rotation of sprite whichSprite = i * 10
updatestage
end repeat
end
|
 |
|