Flash 物體跟隨鼠標翻轉

Flash中mouseX,mouseY表示鼠標當前的位置,運用rotationX ,rotationY 屬性可以實現物體跟着鼠標翻轉的效果: 1、新建一fla文件,在舞臺上上繪製一矩形,並轉化成元件,實例名爲mc 2、F9在幀上添加腳本,如下: mc.x = 275;mc.y = 200; mc.addEventListener(Event.ENTER_FRAME,onHandler); func
相關文章
相關標籤/搜索