Issue: Im am trying to animate a movieClip in relation to the mouseX (cursor). If I move my mouse to the left, I would like the movieClip.x to move in the opposite direction as well as movieClip.z and rotationY. Please review my code and push me in the right direction. I feel as though I am getting very close.
this.addEventListener (Event.ENTER_FRAME,beginRotation);
function beginRotation (e:Event):void {
event3.rotationY = -stage.mouseX;
event3.x = stage.width-stage.mouseX;
event3.z = stage.width-stage.mouseX;
trace ("movin");
}
Please any help is great!
Thanks!