Why is drawRoundRectComplex() not documented in ActionScript?

安稳与你 提交于 2019-12-07 14:16:26

问题


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.



来源:https://stackoverflow.com/questions/2474392/why-is-drawroundrectcomplex-not-documented-in-actionscript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!