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

孵卵器

ʃ( ◕ ‿‿ ◕ )ʅ僕と契約して魔法少女になってよ。

口が微妙・・・
/**
 * Copyright zahir ( http://wonderfl.net/user/zahir )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/fyab
 */

package {
    
    import flash.display.Sprite;
    public class QB extends Sprite {
        public function QB(){
            // write as3 code here..
            var qb:Incubator = new Incubator();
            addChild( qb );
            qb.y = 100;
        }
    }
}
import flash.display.Sprite;
import flash.display.Graphics;
import flash.display.Shape;
class Incubator extends Sprite
{
    public function Incubator()
    {
        var rightEye:Eye = new Eye();
        addChild(rightEye);
            
        rightEye.x = 100;
        rightEye.y = 100;
            
        var leftEye:Eye = new Eye();
        addChild(leftEye);
            
        leftEye.x = 365;
        leftEye.y = 100;
            
        rightEye.scaleX = rightEye.scaleY = 0.75;
        leftEye.scaleX = leftEye.scaleY = 0.75;
            
        var mouse:Mouse = new Mouse();
        addChild(mouse);
        mouse.x = 465>>1;
        mouse.y = 200;
    }

}

class Mouse extends Shape
{
    public function Mouse()
    {
        var g:Graphics = graphics;
        g.lineStyle(2, 153 << 16 | 153 << 8 | 153);
        g.moveTo(0,0);
        g.curveTo(40,30, 70, -10);
        
        g.moveTo(0,0);
        g.curveTo(-40,30, -70, -10);
    }

}

class Eye extends Shape
{
    public function Eye()
    {
        var g:Graphics = graphics;
        g.lineStyle(3,106 << 16 | 63 << 8 | 73);
        g.beginFill( 193 << 16 | 75 << 8 | 113);
        g.drawCircle(0,0,50);
        g.endFill();
        g.lineStyle();
        
        g.beginFill( 75 << 16 | 11 << 8 | 30);
        g.drawCircle(0,0,25);
        g.endFill();
        
        g.beginFill( 0xFFFFFF);
        g.drawCircle(-24,-24, 15);
        g.endFill();
    }

}