In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Byte Road

Get Adobe Flash player
by Jawn 02 Nov 2009
/**
 * Copyright Jawn ( http://wonderfl.net/user/Jawn )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/kZDI
 */

package {
	import flash.display.MovieClip;
	import flash.display.BitmapData;
	import flash.display.Bitmap;
	import flash.text.TextField;
        import flash.events.Event
	public class main extends MovieClip {
		private var txt:TextField=new TextField();
		private var bd:BitmapData=new BitmapData(800,600,false,0x000000);
		private var bit:Bitmap=new Bitmap(bd);
		private var bytes:Array=[];
		public function main() {
			for (var i:Number=0; i<400; i++) {
				bytes[i]=Math.random();
			}
			addChild(bit);
addEventListener(Event.ENTER_FRAME,update)
function update(evt:Event):void{
    setDisplay(bytes);
    bd.scroll(2,Math.random()*5)
    }
		}
		public function setDisplay(dispArray:Array) {
			var xpos:Number=0
			var ypos:Number=50
for(var i:Number=0;i<500;i+=5){
					bd.setPixel32(xpos,i,Math.random()*0xFFFFFF);
				}
		}
	}
}