View Full Version : rotate movieClip
Navarone
10-12-2006, 01:56 PM
I need to rotate my movieClip about it's center. I would like to do this with a small button attached to the corner of the movieClip. Are there any tutorials for doing this?:)
Navarone
10-12-2006, 02:44 PM
Ok, I come up with this code, but it only rotates the movieClip with each Press of my button. I want to click on my button and drag the movieClip around it's center.
on (press) {
_root.obj_mc._rotation = _root.obj_mc._rotation+45;
if (_root.obj_mc._rotation == 360) {
_root.obj_mc._rotation = 0;
}
}
Navarone
10-12-2006, 03:04 PM
I found some code searching on google and adapted it to my situation and it seems to be working.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.