flash on 2012-11-18
/**
* Copyright DakeNemui ( http://wonderfl.net/user/DakeNemui )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/5OuJ
*/
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(500);
t_DRAW.addEventListener(TimerEvent.TIMER,drawCirc);
t_DRAW.start();
function drawCirc(event:TimerEvent):void
{
graphics.beginFill(0x000000);
graphics.drawCircle(mouseX,mouseY,25);
}
}
}
}