ProblemYou want to draw a star. SolutionUse the Pen.drawStar( ) method. DiscussionThe Pen.drawStar( ) method enables you to quickly draw a star shape programmatically. The method accepts the following parameters:
The following example draws a five-pointed star: var pen:Pen = new Pen(sampleSprite.graphics); pen.drawStar(100, 100, 5, 50, 100); |