Ive been trying to create a flash website. I wanted a picture that would be rotated. I would have one part under mask, and when i rollover a button, the image would rotate, and a different part of the image would rotate into the mask.
My code is like this:
For the main pic:
For the buttons:
The problem i have now is that the image rotates around the top right corner. The axis is in the top right corner, but i want it in the middle. Can anybody help?
My code is like this:
For the main pic:
| Code: |
| onClipEvent(load){
rot=0; } onClipEvent(enterFrame){ rotation=(rot-_rotation)*.2; _rotation+=rotation; } |
For the buttons:
| Code: |
| on(rollOver){
_root.menu_mc.rot=30; } |
The problem i have now is that the image rotates around the top right corner. The axis is in the top right corner, but i want it in the middle. Can anybody help?
