Rotation property allows you to control the rotation of a movie clip or instance.
Rotation will occur over the number frames with the stated number or rotations.
Simple script:
onenterframe = function () { this._rotation += 45; };