語法如下>>
//import TweenMax import com.greensock.*; import com.greensock.easing.*; //元件dog初始值設定透明度為0 dog.alpha = 0; //元件dog淡入 TweenMax.to(dog, 1 ,{alpha:1}); stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoves); function mouseMoves(e:Event):void { TweenMax.to(dog, 1 ,{x :mouseX, y: mouseY, ease:Back.easeOut}); }
0 意見:
張貼留言