Why is drawRoundRectComplex() not documented in Ac

2019-05-16 16:35发布

问题:

In studying actionscript 3's graphics class, I've come across the undocumented drawRoundRectComplex() method. It's a variant of drawRoundRect() but with 8 parameters, the final four being the diameter of each corner (x, y, width, height, top left, top right, bottom left, bottom right).

//example
var sp:Sprite = new Sprite();
sp.graphics.lineStyle(1, 0x000000);
sp.graphics.drawRoundRectComplex(0, 0, 200, 150, 110, 50, 0, 10);
addChild(sp);

this seems to be a pretty useful method, so i'm just curious if anyone knows of any reasons why adobe chose not to document it?

回答1:

I believe it's documented in the mx.utils.GraphicUtils class.

Link.