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).
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?
source
share