ProblemYou want to draw an arc. SolutionUse the Pen.drawArc( ) method. DiscussionAn arc is a part of the outline from a circle. Drawing an arc with the curveTo( ) method is rather difficult for various reasons. However, by using the Pen.drawArc( ) method, you can quickly draw an arc of any radius and length. The drawArc( ) method accepts the following parameters:
The following draws an arc with radial lines; the radius is 50, the arc angle is 80 degrees, and the starting angle is 20 degrees: var pen:Pen = new Pen(graphics); pen.drawArc(100, 100, 50, 80, 20, true); |