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

forked from: fuck the drawCircle.

drawCircleの精度は、痛すぎる。
/**
 * Copyright IStillLikeFlash ( http://wonderfl.net/user/IStillLikeFlash )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/tNtW
 */

// forked from onmyownlife's fuck the drawCircle.
package {
    import flash.display.Sprite;
    import flash.events.Event;
    /**
    * drawCircleの精度は、痛すぎる。
    */
    public class FlashTest extends Sprite {

        private var circle_mc:Sprite;
        private var square:Sprite;
        
        public function FlashTest() {
           circle_mc=new Sprite();
           
           addChild(circle_mc);
           //circle_mc.graphics.lineStyle(25,0xFF0000);
           circle_mc.graphics.beginFill(0x000000,1);
           circle_mc.graphics.drawCircle(0, 0, 200);
           circle_mc.x = 200;
           circle_mc.y = 200;
           circle_mc.addEventListener(Event.ENTER_FRAME,function(e:Event):void{circle_mc.rotation+=3});
           
           square = new Sprite();
           square.graphics.beginFill(0xff0000, 0.5);
           square.graphics.drawRect(0, 0, 400, 400);
           square.graphics.endFill();
           
           square.x = 0;
           square.y = 0;
           
           addChild(square);
        }

    }
}