bsquared18
Technical User
Hi,
I'm in the process of learning ActionScript 2 and am a newbie to scripting in general. I created a graphic of a wagon wheel and converted it to a movieclip named wheel_mc. Then, I applied the following script:
onClipEvent (enterFrame) {
_root.wheel_mc._rotation = _root.wheel_mc._rotation + 1;
}
This causes the movieclip to rotate around the cross hair in the upper left-hand corner of the movieclip. Is there a way to move the cross hair to the center of the movie clip or to change the scripting so that the wheel rotates around its center point?
I know I could use non-scripting methods to make the wheel rotate, but since I'm trying to learn scripting, well, you know....
Thanks,
Bill
I'm in the process of learning ActionScript 2 and am a newbie to scripting in general. I created a graphic of a wagon wheel and converted it to a movieclip named wheel_mc. Then, I applied the following script:
onClipEvent (enterFrame) {
_root.wheel_mc._rotation = _root.wheel_mc._rotation + 1;
}
This causes the movieclip to rotate around the cross hair in the upper left-hand corner of the movieclip. Is there a way to move the cross hair to the center of the movie clip or to change the scripting so that the wheel rotates around its center point?
I know I could use non-scripting methods to make the wheel rotate, but since I'm trying to learn scripting, well, you know....
Thanks,
Bill