如何圆角 AS3 中的四个角中的两个?

How to round two of the four corners in AS3?

如何在 AS3 中将四个角中的两个圆化?函数

drawRoundRect(0, 0, width, height, 16);

把所有的角弄圆,但我只需要 2 个顶角或 2 个底角。

drawRoundRectComplexmx.utils.GraphicsUtil 中允许您分别指定 topLeftRadius、topRightRadius、bottomLeftRadius 和 bottomRightRadius。

示例:

GraphicsUtil.drawRoundRectComplex(this.graphics,0,0,width,height,20,20,0,0);