Actionscript: Why is drawRoundRectComplex() not documented?
Posted
by Chunk1978
on Stack Overflow
See other posts from Stack Overflow
or by Chunk1978
Published on 2010-03-19T01:07:49Z
Indexed on
2010/03/19
1:11 UTC
Read the original article
Hit count: 331
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, 100, 50, 10, 20, 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?
© Stack Overflow or respective owner