// forked from hedachi's 水 // forked from ysformen's forked from: wonderfl KeyVisual V.4.ja package { import flash.display.*; import com.flashdynamix.motion.*; import fl.motion.easing.*; import flash.events.Event; import flash.events.MouseEvent; public class Main extends MovieClip{ private var tween:TweensyTimeline; private var tween2:TweensyTimeline; public function Main(){ //マウスを動かすとclickMoveメソッド実施 stage.addEventListener(MouseEvent.MOUSE_MOVE, clickMove); } private function clickMove(event:MouseEvent) :void{ var s:Sprite = new Sprite(); s.graphics.beginFill(0x0066FF,Math.random()*0.7); s.graphics.drawCircle(0,0,Math.random() * 5 ); s.graphics.endFill(); addChild(s); s.x = event.stageX s.y = event.stageY tween = Tweensy.to(s, {scaleX:1, scaleY:1}, 500, Sine.easeIn); tween2 = Tweensy.to(s, {x:-100, y:-100} , Math.random() * 10, Sine.easeOut) } } } forked from: 水