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

FDT3風アイコン

/**
 * Copyright ProjectNya ( http://wonderfl.net/user/ProjectNya )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/xau2
 */

////////////////////////////////////////////////////////////////////////////////
// FDT3 Logo
////////////////////////////////////////////////////////////////////////////////

package {

    import flash.display.Sprite;

    [SWF(backgroundColor="#FFFFFF", width="465", height="465", frameRate="30")]

    public class Main extends Sprite {
        private var logo:FDT3;

        public function Main() {
            //Wonderfl.capture_delay(1);
            init();
        }

        private function init():void {
            logo = new FDT3();
            addChild(logo);
            logo.x = 232;
            logo.y = 232;
        }
        
    }

}


//////////////////////////////////////////////////
// FDT3クラス
//////////////////////////////////////////////////

import flash.display.Sprite;
import flash.display.Shape;
import flash.geom.Matrix;
import flash.display.GradientType;
import flash.display.SpreadMethod;
import flash.display.InterpolationMethod;
import flash.display.BlendMode;
import flash.filters.DropShadowFilter;

class FDT3 extends Sprite {

    public function FDT3() {
        draw();
    }

    private function draw():void {
        draw1();
        draw2();
        draw3();
        draw4();
        draw5();
        filters = [new DropShadowFilter(4, 90, 0x000000, 0.4, 16, 16, 2, 3, false, false, false)];
    }
    private function draw1():void {
        var base:Shape = new Shape();
        addChild(base);
        base.graphics.beginFill(0x013A58);
        base.graphics.drawRoundRect(-200, -200, 400, 400, 40);
        base.graphics.endFill();
    }
    private function draw2():void {
        var light:Shape = new Shape();
        addChild(light);
        var colors:Array = [0x00BBE8, 0x00BBE8];
        var alphas:Array = [1, 0];
        var ratios:Array = [0, 239];
        var matrix:Matrix = new Matrix();
        matrix.createGradientBox(388, 388, 0, -194, -194);
        matrix.scale(1, 0.9);
        matrix.translate(0, 24);
        light.graphics.beginGradientFill(GradientType.RADIAL, colors, alphas, ratios, matrix, SpreadMethod.PAD, InterpolationMethod.RGB, 0);
        light.graphics.drawRoundRect(-194, -194, 388, 388, 34);
        light.graphics.endFill();
    }
    private function draw3():void {
        var reflection:Shape = new Shape();
        addChild(reflection);
        var colors:Array = [0xFFFFFF, 0xFFFFFF];
        var alphas:Array = [1, 0.2];
        var ratios:Array = [0, 255];
        var matrix:Matrix = new Matrix();
        matrix.createGradientBox(1200, 600, 0, -600, -600);
        reflection.graphics.beginGradientFill(GradientType.RADIAL, colors, alphas, ratios, matrix, SpreadMethod.PAD, InterpolationMethod.RGB, 0);
        reflection.graphics.drawEllipse(-400, -360, 800, 400);
        reflection.graphics.endFill();
        var overlay:Shape = new Shape();
        addChild(overlay);
        overlay.graphics.beginFill(0x000000);
        overlay.graphics.drawRoundRect(-194, -194, 388, 388, 34);
        overlay.graphics.endFill();
        reflection.mask = overlay;
        reflection.blendMode = BlendMode.SCREEN;
    }
    private function draw4():void {
        var reflection:Shape = new Shape();
        addChild(reflection);
        var colors:Array = [0x0000FF, 0x0000FF, 0xFFFFFF];
        var alphas:Array = [0, 0.2, 0];
        var ratios:Array = [0, 127, 255];
        var matrix:Matrix = new Matrix();
        matrix.createGradientBox(500, 300, 0, -250, -150);
        matrix.translate(0, 40);
        reflection.graphics.beginGradientFill(GradientType.RADIAL, colors, alphas, ratios, matrix, SpreadMethod.PAD, InterpolationMethod.RGB, 0);
        reflection.graphics.drawEllipse(-400, -360, 800, 400);
        reflection.graphics.endFill();
        var overlay:Shape = new Shape();
        addChild(overlay);
        overlay.graphics.beginFill(0x000000);
        overlay.graphics.drawRoundRect(-194, -194, 388, 388, 34);
        overlay.graphics.endFill();
        reflection.mask = overlay;
        reflection.blendMode = BlendMode.MULTIPLY;
    }
    private function draw5():void {
        var txt:Shape = new Shape();
        addChild(txt);
        txt.graphics.beginFill(0xFFFFFF, 0.9);
        txt.graphics.drawRect(-88, -48, 34, 34);
        txt.graphics.drawRect(-48, -88, 34, 34);
        txt.graphics.drawRect(-48, -48, 34, 34);
        txt.graphics.drawRect(-48, -8, 34, 34);
        txt.graphics.drawRect(-48, 32, 34, 34);
        txt.graphics.drawRect(-48, 72, 34, 34);
        txt.graphics.drawRect(-48, 112, 34, 34);
        txt.graphics.drawRect(-8, -128, 34, 34);
        txt.graphics.drawRect(-8, -88, 34, 34);
        txt.graphics.drawRect(-8, -48, 34, 34);
        txt.graphics.drawRect(-8, -8, 34, 34);
        txt.graphics.drawRect(-8, 32, 34, 34);
        txt.graphics.drawRect(-8, 72, 34, 34);
        txt.graphics.drawRect(-8, 112, 34, 34);
        txt.graphics.drawRect(32, -128, 34, 34);
        txt.graphics.drawRect(32, -48, 34, 34);
        txt.graphics.drawRect(72, -128, 34, 34);
        txt.graphics.endFill();
    }

}