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

FlashDevelop Logo

new FlashDevelop's logo.
I love FD :)
@author jc at bk-zen.com
/**
 * Copyright bkzen ( http://wonderfl.net/user/bkzen )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/33zr
 */

package  
{
    import flash.display.Sprite;
    import flash.events.Event;
    
    /**
     * new FlashDevelop's logo.
     * I love FD :)
     * @author jc at bk-zen.com
     */
    [SWF (backgroundColor = "0xFFFFFF", frameRate = "30", width = "465", height = "465")]
    public class Test23 extends Sprite
    {
        
        public function Test23() 
        {
            if (stage) init();
            else addEventListener(Event.ADDED_TO_STAGE, init);
        }
        
        private function init(e: Event = null): void 
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
            //
            var logo: FDLogo = new FDLogo(256);
            logo.x = stage.stageWidth  - logo.width  >> 1;
            logo.y = stage.stageHeight - logo.height >> 1;
            addChild(logo);
        }
    }
}
import flash.display.BlendMode;
import flash.display.GradientType;
import flash.display.Graphics;
import flash.display.Shape;
import flash.display.Sprite;
import flash.geom.Matrix;
class FDLogo extends Sprite
{
    function FDLogo(size: int)
    {
        var g: Graphics = graphics, s: Number, m: Matrix, sa: Number, t: Number = 128 / size, sh: Shape = new Shape();
        g.beginFill(0xCF7729);
        g.drawRect(0, 0, size, size);
        g.beginFill(0xF5951F);
        s = 6.5 / t, sa = size - s * 2;
        g.drawRect(s, s, sa, sa);
        m = new Matrix();
        s = 13 / t, sa = size - s * 2;
        m.createGradientBox(sa, sa, Math.PI / 4, s, s);
        g.beginGradientFill(GradientType.LINEAR, [0xFFFFFF, 0xF4E8DA], [1, 1], [0x00, 0xFF], m);
        g.drawPath(
            Vector.<int>([
              1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
            ]), Vector.<Number>([
                s, s, s + sa, s, s + sa, 30 / t, 43 / t, 30 / t, 98 / t, 88 / t, 98 / t, 47 / t, 
                s + sa, 47 / t, s + sa, s + sa, 98 / t, s + sa, 30 / t, 43 / t, 30 / t, s + sa, s, s + sa, s, s
            ])
        );
        g = sh.graphics;
        s = 6.5 / t, sa = size - s * 2;
        m.createGradientBox(sa, sa, Math.PI * 2 / 5);
        g.beginGradientFill(GradientType.LINEAR, [0xFFFFFF, 0xFFFFFF], [0.7, 0.0], [0x00, 0xCC], m);
        g.drawPath(
            Vector.<int>([
                1, 2, 2, 3, 2
            ]), Vector.<Number>([
                s, s, s + sa, s, s + sa, 55 / t, 55 / t, 55/ t, s, 90 / t, s, s
            ])
        );
        sh.blendMode = BlendMode.SCREEN;
        addChild(sh);
    }
}