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

わかめちゃん

Get Adobe Flash player
by say 04 Apr 2011
/**
 * Copyright say ( http://wonderfl.net/user/say )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/lJGH
 */

// forked from ProjectNya's 教材:矩形(四角)を描こう!
package {
    import flash.display.Sprite;
    import flash.display.Shape;
    import flash.filters.DropShadowFilter;

    public class Main extends Sprite {
        private var shape:Shape;
        private var eyes:Shape;
        private static var color:uint = 0xff0000;

        public function Main() {
            init();
        }

        private function init():void {
            shape = new Shape();
            addChild(shape);
            shape.x = 232;
            shape.y = 232;
            shape.graphics.beginFill(color);
//            shape.graphics.drawRoundRect(-120, -90, 240, 180, 50);
            shape.graphics.drawCircle(0, 100, 160);
            shape.graphics.drawCircle(0, 0, 200);
            shape.graphics.endFill();
            
            shape.filters = [new DropShadowFilter(10, 90, 0xff0066, 0.5, 16, 16, 1, 1, false, true, false)];

            eyes = new Shape();
            addChild(eyes);
            eyes.x = 232;
            eyes.y = 280;
            
            eyes.graphics.beginFill(0x000000);
            eyes.graphics.drawCircle(70, 0, 30);
            eyes.graphics.drawCircle(-70, 0, 30);
            eyes.graphics.drawCircle(60, -5, 10);
            eyes.graphics.drawCircle(-80, -5, 10);
            eyes.graphics.endFill();

        }

    }
}