在我的3D旋转菜单中反转y轴(as3)

问题描述:

我遇到了我制作此3D旋转菜单的问题。我的代码看起来像这样。在我的3D旋转菜单中反转y轴(as3)

import flash.events.Event; 

addEventListener(Event.ENTER_FRAME, onEnterFrame); 

function onEnterFrame(event:Event):void 
{ 
    anim.rotationX += ((stage.mouseY - stage.stageHeight/2)-anim.rotationX*20) * 0.009; 
    anim.rotationY += ((stage.mouseX - stage.stageWidth/4)-anim.rotationY*20) * 0.009; 
} 

,但我不知道如何使y轴反转,因此在y轴对面的影片剪辑移动

谁能帮助?

改变这一行:

anim.rotationY += ((stage.mouseX - stage.stageWidth/4)-anim.rotationY*20) * 0.009; 

要:

anim.rotationY -= ((stage.mouseX - stage.stageWidth/4)-anim.rotationY*20) * 0.009;