CornerRadius is a value type used to describe the radius of a rectangle's corners (controlled independently).
It contains four number structs each corresponding to a corner: TopLeft, TopRight, BottomLeft, BottomRight.
The corner radii cannot be negative.
support
public var bottomLeft:Number = 0
public var bottomRight:Number = 0
public static var CornerRadius0:CornerRadius
public static var CornerRadius3:CornerRadius
public var topLeft:Number = 0
public var topRight:Number = 0
public function CornerRadius(... rest)Parameters
public function clone():Object
Returns a new CornerRadius object with the same values for the topLeft, topRight, bottomRight, and bottomLeft properties as the original CornerRadius object.
Returns
| Object — A new CornerRadius object with the same values for the topLeft, topRight, bottomRight, and bottomLeft properties as the original CornerRadius object.
|
public function copy(target:CornerRadius):void
Changes this CornerRadius object to match the same values for the topLeft, topRight, bottomRight, and bottomLeft properties as the target CornerRadius object.
Parameters
public function hasSimpleRadius():Boolean
Returns
public function isEmpty():Boolean
Returns
public function setEmpty():void
Sets all of the CornerRadius object's properties to 0. A CornerRadius object is empty if all its corner radius is equal to 0.
This method sets the values of the topLeft, topRight, bottomRight, and bottomLeft properties to 0.
public function setRadius(topLeft:Number, topRight:Number, bottomRight:Number, bottomLeft:Number):void
Set the properties of this CornerRadiusobject
Parameters
| topLeft:Number |
| |
| topRight:Number |
| |
| bottomRight:Number |
| |
| bottomLeft:Number |