Packageorg.apache.flex.utils
Classpublic class SolidBorderUtil
InheritanceSolidBorderUtil Inheritance Object

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 Methods
 MethodDefined By
  
drawBorder(g:Graphics, x:Number, y:Number, width:Number, height:Number, color:uint, backgroundColor:Object = null, thickness:int = 1, alpha:Number = 1.0):void
[static] Draw a solid color border as specified.
SolidBorderUtil
Method Detail
drawBorder()method
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