Why is drawRoundRectComplex() not documented in ActionScript?
-
21-09-2019 - |
Question
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?
Solution
I believe it's documented in the mx.utils.GraphicUtils
class.
Link.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow