In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: forked from: wonderfl KeyVisual V.4.ja

// forked from ysformen's forked from: wonderfl KeyVisual V.4.ja
package {

    import com.flashdynamix.motion.*;
    
    import fl.motion.easing.*;
    
    import flash.display.*;
    import flash.events.MouseEvent;
    import flash.filters.BlurFilter;
    
    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(0xFF00FF*Math.random(),Math.random()*0.7);
           s.graphics.drawCircle(0,0,Math.random() * 10);
           s.graphics.endFill();
           var myFilters:Array = new Array(new BlurFilter(Math.random()*8,Math.random()*8));
           s.filters = myFilters;
           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:stage.stageWidth/2, y:stage.stageHeight/2} , Math.random() * 3, Back.easeInOut)
           tween.onComplete = function():void{
               removeChild(s);
           }
        }
                
    }
}