CLICK HERE TO COPY
Actionscript:
var canvas:BitmapData = new BitmapData(500,500,false, 0x000000);
addChild(new Bitmap(canvas));
var pix:Vector.<uint> = new Vector.<uint>(canvas.width * canvas.height, true);
addEventListener(Event.ENTER_FRAME, onLoop);
function onLoop(evt:Event):void {
canvas.lock();
var i:int = pix.length;
while(--i> -1){
var c:uint = uint(Math.random() * 255);
pix[i] = c <<16 | c <<8 | c;
}
canvas.setVector(canvas.rect, [...]