Rotation and speed

hi, sorry about this but how can i rotate an object using AS and also control the speed it rotats at ? thx alot :smiley:

Something like this :wink:

onClipEvent(load)
 {
     speed = 3;
 }
 onClipEvent(enterFrame)
 {
_rotation =  i*speed;
i++;
}

that doesnt work… or i dont know how to do it properly :S

[AS]onClipEvent(load) {
speed=3
}
onClipEvent(enterFrame) {
this._rotation += speed;
}
[/AS]

you must copy the code… ratbaggy’s code is “lighter” :)…and put it on the movie you want to rotate.