I am using the action script below to rotate my cube.
I how ever have the problem of it rotating from the wrong center point even though I have set it to the middle.
I am aware that this can be done using action script just wondering about the syntax or any simple suggestions.
function cubeRotate(e:Event){
mycube3d.rotationY = mycube3d.rotationY+1;
mycube3d.rotationX = mycube3d.rotationX+1;
}
stage.addEventListener(Event.ENTER_FRAME,cubeRotate);
1 Answer