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: flash on 2014-1-7

Get Adobe Flash player
by aiz 07 Jan 2014
    Embed
/**
 * Copyright aiz ( http://wonderfl.net/user/aiz )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/gfSq
 */

// forked from aiz's flash on 2014-1-7
package {
    import flash.display.Sprite;
    public class drawCircle3 extends Sprite {
        public function drawCircle3() {
            // write as3 code here..
            var centerX:Number = 100;
            var centerY:Number = 200;
            var r:Number = 50;
            
            graphics.lineStyle(2, 0xff0006);
            graphics.moveTo(centerX+r, centerY);
            
            graphics.curveTo(r+centerX,
                     Math.tan(Math.PI/8)*r+centerY,
                     Math.sin(Math.PI/4)*r+centerX,
                     Math.sin(Math.PI/4)*r+centerY);
            graphics.curveTo(Math.tan(Math.PI/8)*r+centerX, 
                                                 r+centerY,
                                                 centerX,
                                                 r+centerY);
            graphics.curveTo(-Math.tan(Math.PI/8)*r+centerX,
                                                  r+centerY,
                             -Math.sin(Math.PI/4)*r+centerX,
                             Math.sin(Math.PI/4)*r+centerY);
           graphics.curveTo(-r+centerX, Math.tan(Math.PI/8)*r+centerY,
                                                  -r+centerX, centerY);
           graphics.curveTo(-r+centerX, -Math.tan(Math.PI/8)*r+centerY,
                                        -Math.sin(Math.PI/4)*r+centerX,
                                        -Math.sin(Math.PI/4)*r+centerY);
           graphics.curveTo(-Math.tan(Math.PI/8)*r+centerX, -r+centerY,
                                                   centerX, -r+centerY);
          // graphics.curveTo(Math.tan(Math.PI/8)*r+centerX, -r+centerY,
           //                             Math.sin(Math.PI/4)*r+centerX,
            //                           -Math.sin(Math.PI/4)*r+centerY);
          //graphics.curveTo(r+centerX, -Math.tan(Math.PI/8)*r+centerY,
           //                                  r+centerX, centerY);
                                             
            
        }
    }
}