CPOJoe
asked on
Spinning image in Flash
I'm trying to make a short animation in Flash (CS3 with ActionScript 3), where a graphic will zip around the screen, while spinning, for a few seconds.
I plan to do the zipping around will simple motion tweens. I know I could to the spinning with tweens -- but, would rather do it via Action Script. Sadly, I'm an Action Script rookie and don't know how to do it.
Help?
I plan to do the zipping around will simple motion tweens. I know I could to the spinning with tweens -- but, would rather do it via Action Script. Sadly, I'm an Action Script rookie and don't know how to do it.
Help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So, I just clicked in the 1st frame of the main timeline and up the code in there. I'm getting some rotation -- have to tweak the frame rate, etc to get it to look right.
But, it's rotating around the top, left corner and not the center. Not sure how to change that...?
But, it's rotating around the top, left corner and not the center. Not sure how to change that...?
ASKER
Ahh -- OK, Converted the .png to an MC, and put the code on the 1st frame of the MC -- now its rotating around the center...
ASKER
So, I have my image on the stage. I'll do F8 to convert it to a movie clip, right? Then, do I F9 to put in the code on the MC?
as3, btw.