Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6
The SolidBorderUtil class is a utility class that draws a solid color
border of a specified color, thickness and alpha. This class is used
to composite Flash equivalents of JS entities and has no JS
equivalent.
public static function drawBorder(g:Graphics, x:Number, y:Number, width:Number, height:Number, color:uint, backgroundColor:Object = null, thickness:int = 1, alpha:Number = 1.0):void
Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6
Draw a solid color border as specified. Will fill with
the backgroundColor if specified.
Parameters
g :Graphics
— The flash.display.DisplayObject#graphics
x :Number
— The x position
y :Number
— The y position
width :Number
— The width
height :Number
— The height
color :uint
— The color
backgroundColor :Object
(default = null
)
— The optional fill color
thickness :int
(default = 1
)
— The thickness of the border
alpha :Number
(default = 1.0
)
— The alpha
The Apache Software Foundation Fri Apr 18 2014, 11:02 PM -07:00