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

flash on 2010-1-27

Get Adobe Flash player
by nicoptere 27 Jan 2010
/**
 * Copyright nicoptere ( http://wonderfl.net/user/nicoptere )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/8IHV
 */

package {
    import flash.display.Sprite;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    public class FlashTest extends Sprite {
        public function FlashTest()
        {
            
            //black > color
            /* 
            var bmp:Bitmap = Bitmap( addChild( new Bitmap( new BitmapData( 6, 2, false, 0x000000 ), 'auto', true ) ) );
            var i:int = 6;
            while( i-- )bmp.bitmapData.setPixel( i, 1, ( ( i < 2 || i > 4 ) ? 1:0 ) * 0xFF << 16 | ( ( i > 0 && i < 4 ) ? 1:0 ) * 0xFF << 8 | ( i > 2 && i < 6 ? 1:0 ) * 0xFF  ); 
            bmp.width = bmp.height = 465;
            //*/
            
            
            //black > color > white
            //*
            var bmp:Bitmap = Bitmap( addChild( new Bitmap( new BitmapData( 6, 3, false, 0xFFFFFF ), 'auto', true ) ) );
            var i:int = 6;
            while( i-- )
            {
                bmp.bitmapData.setPixel( i, 0, 0x000000 );
                bmp.bitmapData.setPixel( i, 1, ( ( i < 2 || i > 4 ) ? 1:0 ) * 0xFF << 16 | ( ( i > 0 && i < 4 ) ? 1:0 ) * 0xFF << 8 | ( i > 2 && i < 6 ? 1:0 ) * 0xFF  ); 
            }
            bmp.width = bmp.height = 465;
            //*/
        }
    }
}