forked from: forked from: Checkmate Vol.6 Amatuer
♥0 |
Line 20 |
Modified 2010-01-03 05:18:14 |
MIT License
archived:2017-03-20 15:03:29
ActionScript3 source code
/**
* Copyright weBBBBB ( http://wonderfl.net/user/weBBBBB )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/rajm
*/
// forked from frenki's forked from: Checkmate Vol.6 Amatuer
// forked from checkmate's Checkmate Vol.6 Amatuer
package {
import flash.display.BitmapData;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.display.Sprite;
public class CheckmateAmatuer extends Sprite {
var b:BitmapData;
public function CheckmateAmatuer() {
b = new BitmapData(1, 1, false, 0x000000);
var t:Timer = new Timer(1000);
t.addEventListener(TimerEvent.TIMER, onTick);
t.start();
}
public function onTick(e:TimerEvent):void{
this.graphics.beginBitmapFill(b);
this.graphics.drawRect(Math.random() * stage.stageWidth, Math.random()*stage.stageHeight,1,1);
this.graphics.endFill();
}
}
}