Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Properties > _rotation | |||
Flash Lite 1.0.
my_mc:_rotation
Property; the rotation of the movie clip, in degrees, from its original orientation. Values from 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation. Values outside this range are added to or subtracted from 360 to obtain a value within the range. For example, the statement my_mc:_rotation = 450 is the same as my_mc:_rotation = 90.
The following example rotates the my_mc movie clip 15 degrees clockwise when the user presses the 2 key:
on (keyPress "2") {
my_mc:_rotation += 15;
}
|
|
|
|