Why is drawRoundRectComplex () not documented in ActionScript?

While learning the actionscript 3 graphics class, I came across an undocumented method drawRoundRectComplex(). This is an option drawRoundRect(), but with 8 parameters, the last four are the diameter of each corner (x, y, width, height, upper left, upper right, lower left, lower 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 wondering if anyone knows any reasons why adobe chose not to document it?

+3
source share
1 answer

I believe it is documented in the classroom mx.utils.GraphicUtils.

Link .

+2

Source: https://habr.com/ru/post/1737629/


All Articles