Reputation: 13
How to round two of the four corners in AS3? The function
drawRoundRect(0, 0, width, height, 16);
rounds all corners, but i need only 2 top corners or only 2 bottom corners.
Upvotes: 1
Views: 89
Reputation: 3914
drawRoundRectComplex
in the mx.utils.GraphicsUtil allows you to specify topLeftRadius, topRightRadius, bottomLeftRadius, and bottomRightRadius separately.
Example:
GraphicsUtil.drawRoundRectComplex(this.graphics,0,0,width,height,20,20,0,0);
Upvotes: 3