1,、import flash.ui.MouseCursor 2、鼠標(biāo)樣式改變,。 Mouse.cursor="hand";//手掌型樣式,。 -------------------------------------------------------------- 按下某一按鈕后,,鼠標(biāo)指針樣式切換為自定義的樣式 ----------------------------------------------------------------- import flash.display.Shape; ----------------------------------------------------------------- as3點擊一個mc 后mc會轉(zhuǎn)動 ----------------------------------------------------------------- 舞臺上的指針命名為“mc”,,它的注冊點放在選擇的中心點 import fl.transitions.Tween; import fl.transitions.easing.*; mc.addEventListener(MouseEvent.CLICK,toRoll); function toRoll(e:MouseEvent){ var beta:Number=Math.random()*360+360; var myTween:Tween = new Tween(mc, "rotation", Back.easeOut, mc.rotation, beta, 5, true); } |
|