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 2011-1-18

...
@author jc at bk-zen.com
Get Adobe Flash player
by bkzen 18 Jan 2011
/**
 * Copyright bkzen ( http://wonderfl.net/user/bkzen )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/sBKG
 */

package  
{
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.BlendMode;
    import flash.display.Graphics;
    import flash.display.Shape;
    import flash.display.Sprite;
    import flash.events.Event;
    /**
     * ...
     * @author jc at bk-zen.com
     */
    [SWF (backgroundColor = "0x000000", frameRate = "30", width = "465", height = "465")]
    public class Test21 extends Sprite
    {
        
        public function Test21() 
        {
            var sh: Shape = new Shape(), g: Graphics = sh.graphics, i: int, n: int = 465;
            var bmd: BitmapData = new BitmapData(n, n, false, 0);
            bmd.lock();
            for (i = 0; i < n; i++) 
            {
                g.clear();
                g.lineStyle(2, (i/3<<16)|((255-i)<<8)*((255-i>>-1)+1)|255,0.08);
                g.moveTo(i, n), g.lineTo(n, n - i);
                g.moveTo(i, 0), g.lineTo(0, n - i);
                g.moveTo(i, 0), g.lineTo(n,     i);
                g.moveTo(0, i), g.lineTo(i, n    );
                bmd.draw(sh, null, null, BlendMode.SCREEN, null, true);
            }
            addChild(new Bitmap(bmd, "auto", true));
        }
    }
}