rotating script in flash
- Started
- Last post
- 2 Responses
- Baskerville
Hi guys,
I'm a print designer but I'm having a go at flash. I've got a movie clip that I want to rotate on a loop. I tried using the rotate function in the properties but it looks quite jerky.
Now I'm trying to rotate it using action scripting. At the moment my code is:
onClipEvent (enterFrame) {
i = getProperty(this,_rotation);
setProperty(this,_rotation,i + 1);
}The clip now rotates but it rotates about the top left of the clip and I now want to make it rotate about a certain point (X:243.1 Y:199.8)
how can I do this? It's really annoying me.
thanks for your help
- fifty500
why not increase the number of frames and increase the frame rate? will look a lot smoother
- UndoUndo0
center the image in yr MC about the 0,0 point of the MC. It will then rotate about the centre