Section 1
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
public class Main extends Sprite {
public var sw:int;
public var timer:int;// = 0
public var mx:Number;
public var my:Number;
public var bitmap:Bitmap;
public var sh:int;
public var canvas:BitmapData;
public function Main(){
stage.scaleMode = "noScale";
stage.align = "T_L";
stage.addEventListener("resize", init);
init(null);
addEventListener("enterFrame", loop);
}
public function init(_arg1:Event):void{
sw = stage.stageWidth;
sh = stage.stageHeight;
canvas = new BitmapData(sw, sh, false);
bitmap = new Bitmap(canvas);
if (contains(bitmap)){
removeChild(bitmap);
};
addChild(bitmap);
}
public function loop(_arg1:Event):void{
var _local3:int;
canvas.lock();
var _local2:int;
while (_local2 < sw) {
_local3 = 0;
while (_local3 < sh) {
canvas.setPixel(_local2, _local3, (((_local2 + timer) ^ (_local3 + timer)) * timer));
_local3++;
};
_local2++;
};
canvas.unlock();
timer++;
}
}
}//package