Spinning objects

hey again :slight_smile:

im looking to spin objects such as website logos on their y axis, any help is appreciated greatly


this is easy. convet the logo to a movie clip then put this action on it.

onClipEvent(load) {
   var spinSpeed:Number = 6;
   this._rotation = _rotation + spinSpeed;

this part ;
onClipEvent(load) {

  • var spinSpeed:Number = 6;*

creates a variable once the movie clip is loaded. This variable is the speed in which the logo will spin. the second part means that the logo will spin however many degrees are stated in the spinSpeed variable. In this example the logo would spin 6 degrees everytime it enters frame. So if the frame rate is 12… it will turn 72 degrees every second. Simple!

aha! ta very much!