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

unix epoch

You'll find nothing of interest here.
Get Adobe Flash player
by wh0 12 May 2011
/**
 * Copyright wh0 ( http://wonderfl.net/user/wh0 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/cAqE
 */

package {
    import flash.display.*;
    import flash.events.*;
    import flash.filters.*;
    import flash.geom.*;
    public class FlashTest extends Sprite {
        
        private static const s:Number = 10. / 0x4000;
        private var sh:Shape;
        
        public function FlashTest() {
            graphics.beginGradientFill(GradientType.LINEAR, [0x607080, 0x404060], [1, 1], [0, 255], new Matrix(0, 465 * s, 1, 0, 232.5, 232.5));
            graphics.drawRect(0, 0, 465, 465);
            graphics.endFill();
            
            var back:Shape = new Shape();
            back.filters = [new DropShadowFilter(2, 90, 0x000000, 0.5, 8, 8, 1, BitmapFilterQuality.HIGH)];
            back.graphics.beginFill(0x282828);
            back.graphics.drawRoundRect(102, 150, 260, 164, 12, 12);
            back.graphics.endFill();
            addChild(back);
            
            sh = new Shape();
            sh.x = 104; sh.y = 152;
            sh.filters = [new DropShadowFilter(1, 90, 0x000000, 0.2, 0, 0, 1, 0, true)];
            addChild(sh);
            
            var light:Shape = new Shape();
            light.graphics.beginGradientFill(GradientType.RADIAL, [0x000000, 0x000000], [0, 0.75], [0, 255], new Matrix(0, -593 * s, 750 * s, 0, 232.5, 232.5), SpreadMethod.PAD, InterpolationMethod.RGB, 0.27);
            light.graphics.drawRect(0, 0, 465, 465);
            light.graphics.endFill();
            addChild(light);
            
            sh.addEventListener(Event.ENTER_FRAME, frame);
        }
        
        private function frame(e:Event):void {
            var g:Graphics = sh.graphics;
            var t:int = new Date().getTime() / 1000;
            g.clear();
            g.beginFill(0xf0e0c0);
            for (var r:int = 0; r < 4; r++) {
                for (var c:int = 0; c < 8; c++) {
                    if (t & 1) g.drawRoundRect(c * 32 + 2, r * 40 + 2, 28, 36, 4, 4);
                    t >>>= 1;
                }
            }
            g.moveTo(239, 136);
            g.lineTo(241, 136);
            g.lineTo(241, 140);
            g.lineTo(244, 140);
            g.lineTo(240, 144);
            g.lineTo(236, 140);
            g.lineTo(239, 140);
            g.endFill();
        }
        
    }
}