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

Flaxor Flash Demoscene 1k

Get Adobe Flash player
by Zahurdias.Calimero 03 Dec 2012
    Embed
/**
 * Copyright Zahurdias.Calimero ( http://wonderfl.net/user/Zahurdias.Calimero )
 * GNU General Public License, v3 ( http://www.gnu.org/licenses/quick-guide-gplv3.html )
 * Downloaded from: http://wonderfl.net/c/x9XX
 */

//
// Flaxor (989bytes effect)
// by Mr.doob
//
// Thanks to Texel (http://www.romancortes.com/) and Forrest Briggs (http://laserpirate.com/flashblog/)
//

package
{
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.Sprite;
    import flash.events.Event;
    
    //[SWF(backgroundColor = "#000000", frameRate = "50")]
    public class Main extends Sprite
    {
        public var t : int,canvas : BitmapData=new BitmapData(stage.stageWidth, stage.stageHeight, false);
        
        public function Main()
        {
            addChild(new Bitmap(canvas));
            addEventListener("enterFrame", l);
        }    
        
        private function l(e:Event):void
        {
            for (var x:int = 0; x < stage.stageWidth; x++)
                for (var y:int = 0; y < stage.stageHeight; y++)                
                    canvas.setPixel(x, y, (x + t ^ y + t) * t);
            
            t++;
        }    
    }
}