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 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.8);
           s.graphics.drawCircle(0,0,Math.random() * 20 );
           s.graphics.endFill();
           addChild(s);
           s.x = event.stageX
           s.y = event.stageY
           tween = Tweensy.to(s, {scaleX:1, scaleY:1}, 1000, Sine.easeIn);
           tween2 = Tweensy.to(s, {x:-30, y:-20} , Math.random() * 10, Sine.easeOut)
        }
        
    }
}