Source

blip / Blip.as

Full commit
package {
	import flash.display.Sprite;
	[SWF(width="320", height="240", backgroundColor="0", frameRate="30")]
	public class Blip extends Sprite {
		public function Blip() {
			main = this;
			initialize();
		}
	}
}

import flash.display.*;
import flash.events.*;
import com.beam.blip.*;

var main:Sprite;
var g:Graphics;
var screen:Display;

function initialize():void {
	/* Initialize the screen */
	g = main.graphics;
	main.addEventListener(Event.ENTER_FRAME, update);
}

function update(event:Event):void {
	g.clear();
	g.beginFill(0xffffff);
	for (var y:uint = 0; y < 48; y++) {
		for (var x:uint = 0; x < 64; x++) {
			g.drawRect(x * 5, y * 5, 5, 5);
		}
	}
	g.endFill();
}