forked from: flash on 2012-11-18
/**
* Copyright ysissy ( http://wonderfl.net/user/ysissy )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/h1MD
*/
// forked from DakeNemui's flash on 2012-11-18
package {
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var t_DRAW:Timer = new Timer(50);
t_DRAW.addEventListener(TimerEvent.TIMER,drawCirc);
t_DRAW.start();
function drawCirc(event:TimerEvent):void
{
graphics.beginFill(0x000000);
graphics.drawCircle(mouseX,mouseY,Math.random()*25);
}
}
}
}