/**
* Copyright Maeda_addevent ( http://wonderfl.net/user/Maeda_addevent )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/WVwJ
*/
package {
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.geom.Point;
import frocessing.color.ColorHSV;
[SWF(width=465,height=465,backgroundColor=0x000000,frameRate=60)]
public class FB00015 extends Sprite {
public var sw:Number=stage.stageWidth;
public var sh:Number=stage.stageHeight;
public var _mySprite:mySprite;
public var myCol:int=0;
public function FB00015() {
this.graphics.beginFill(0x000000,1);
this.graphics.drawRect(0,0,sw,sh);
this.graphics.endFill();
stage.addEventListener(MouseEvent.MOUSE_MOVE,xDown);
}
public function xDown(e:MouseEvent):void {
var _color:ColorHSV=new ColorHSV(myCol+=9,1);
_mySprite=new mySprite(int(_color));
_mySprite.x = mouseX;
_mySprite.y = mouseY;
addChild(_mySprite);
}
}
}
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.BlurFilter;
import frocessing.color.ColorHSV;
class mySprite extends Sprite {
public var _color:uint;
public var myFil:BlurFilter=new BlurFilter(2,2,2);
public function mySprite(color:uint):void {
_color=color;
addEventListener(Event.ENTER_FRAME,xEnter);
}
public function xEnter(e:Event):void {
this.graphics.lineStyle(1,int(_color),1,false,"none");
this.graphics.drawCircle(0,0,15);
this.scaleX += 0.05;
this.scaleY += 0.05;
this.alpha-=0.03;
if (this.alpha<0) {
this.graphics.clear();
this.removeEventListener(Event.ENTER_FRAME, xEnter);
}
}
}