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

flash on 2011-2-6

こうしたかった
Get Adobe Flash player
by Susisu 06 Feb 2011
    Embed
package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            addChild(new Test(465/2,465,1.5,0,0));
        }
    }
}
import flash.display.Sprite;
class Test extends Sprite{
    public function Test(x:Number,y:Number,scale:Number,rotation:Number,gen:uint){
        this.x=x;
        this.y=y;
        this.scaleX=this.scaleY=scale;
        this.rotation=rotation;
        var r:Number=-Math.PI/2;
        var ra:Number=-Math.PI/540;
        var px:Number=0;
        var py:Number=0;
        this.graphics.lineStyle(0);
        this.graphics.moveTo(px,py);
        for(var i:int=0;i<560;i++){
            px+=Math.cos(r);
            py+=Math.sin(r);
            r+=ra;
            ra+=Math.PI/18000;
            this.graphics.lineTo(px,py);
            if(i==200&&gen<50)addChild(new Test(px,py,0.75,-45,++gen));
        } 
    }
}