Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 如何使AS3中的四个角中的两个圆?_Actionscript 3_Apache Flex - Fatal编程技术网

Actionscript 3 如何使AS3中的四个角中的两个圆?

Actionscript 3 如何使AS3中的四个角中的两个圆?,actionscript-3,apache-flex,Actionscript 3,Apache Flex,如何使AS3中的四个角中的两个圆?功能 drawRoundRect(0, 0, width, height, 16); 圆角所有角,但我只需要2个顶角或2个底角。中的drawRoundRectComplex允许您分别指定topLeftRadius、topRightRadius、bottomLeftRadius和bottomRightRadius 例如: GraphicsUtil.drawRoundRectComplex(此.graphics,0,0,宽度,高度,20,20,0,0)解决方法:创

如何使AS3中的四个角中的两个圆?功能

drawRoundRect(0, 0, width, height, 16);

圆角所有角,但我只需要2个顶角或2个底角。

中的drawRoundRectComplex
允许您分别指定topLeftRadius、topRightRadius、bottomLeftRadius和bottomRightRadius

例如:


GraphicsUtil.drawRoundRectComplex(此.graphics,0,0,宽度,高度,20,20,0,0)

解决方法:创建两个框。一个有圆角,一个没有圆角。定位未圆框,使其隐藏圆框的圆角。或者,谷歌搜索类似功能的源代码,并根据您的需要进行修改。