forked from: wonderfl KeyVisual V.4.ja
package {
import flash.display.*;
import com.flashdynamix.motion.*;
import fl.motion.easing.*;
import flash.filters.BlurFilter;
import flash.events.Event;
import flash.events.MouseEvent;
public class Main extends MovieClip{
private var tween: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(0xff0000,Math.random());
s.graphics.drawCircle(0,0,Math.random() * 10);
s.graphics.endFill();
addChild(s);
s.x = event.stageX
s.y = event.stageY
tween = Tweensy.to(s, {scaleX:3, scaleY:3}, 1, Sine.easeInOut);
tween = Tweensy.to(s, {x:-30, y:-20} , Math.random() * 3, Back.easeInOut)
tween.onComplete = function():void{
removeChild(s);
}
}
}
}