Packageefnx.gui
Classpublic class TileBar
InheritanceTileBar Inheritance flash.display.Bitmap

TileBar is a bar that tiles in x or y.



Public Properties
 PropertyDefined by
  bottom : BitmapData
TileBar
  direction : String
TileBar
  height : Number
[write-only]
TileBar
  initialized : Boolean
[read-only] Returns whether or not the TileBar is initialized and contains references to bitmapData.
TileBar
  left : BitmapData
TileBar
  middle : BitmapData
TileBar
  right : BitmapData
TileBar
  testing : Boolean = false
[static] Sets verbose output.
TileBar
  top : BitmapData
TileBar
  width : Number
[write-only]
TileBar
Public Methods
 MethodDefined by
  
TileBar(_left:BitmapData = null, _middle:BitmapData = null, _right:BitmapData = null)
TileBar
  
chopAndUse(bmd:BitmapData, _left:int, _middle:int = 0, _right:int = 0):void
Chops one BitmapData object into three chunks and uses each as left, middle and right or top, middle and bottom.
TileBar
  
Clones the TileBar.
TileBar
  
inheritSkin(parent:TileBar):void
Inherits the skin [or bitmapdata] of the parent TileBar.
TileBar
Property detail
bottomproperty
bottom:BitmapData  [read-write]Implementation
    public function get bottom():BitmapData
    public function set bottom(value:BitmapData):void
directionproperty 
direction:String  [read-write]

Implementation
    public function get direction():String
    public function set direction(value:String):void
heightproperty 
height:Number  [write-only]

Implementation
    public function set height(value:Number):void
initializedproperty 
initialized:Boolean  [read-only]

Returns whether or not the TileBar is initialized and contains references to bitmapData.

Implementation
    public function get initialized():Boolean
leftproperty 
left:BitmapData  [read-write]Implementation
    public function get left():BitmapData
    public function set left(value:BitmapData):void
middleproperty 
middle:BitmapData  [read-write]Implementation
    public function get middle():BitmapData
    public function set middle(value:BitmapData):void
rightproperty 
right:BitmapData  [read-write]Implementation
    public function get right():BitmapData
    public function set right(value:BitmapData):void
testingproperty 
public static var testing:Boolean = false

Sets verbose output.

topproperty 
top:BitmapData  [read-write]Implementation
    public function get top():BitmapData
    public function set top(value:BitmapData):void
widthproperty 
width:Number  [write-only]

Implementation
    public function set width(value:Number):void
Constructor detail
TileBar()constructor
public function TileBar(_left:BitmapData = null, _middle:BitmapData = null, _right:BitmapData = null)

Parameters
_left:BitmapData (default = null)
 
_middle:BitmapData (default = null)
 
_right:BitmapData (default = null)
Method detail
chopAndUse()method
public function chopAndUse(bmd:BitmapData, _left:int, _middle:int = 0, _right:int = 0):void

Chops one BitmapData object into three chunks and uses each as left, middle and right or top, middle and bottom.

Parameters
bmd:BitmapData — The BitmapData object to use.
 
_left:int — The width of the left chunk. AKA - The amount to chop off bmd to make the left or top BitmapData object.
 
_middle:int (default = 0) — The width of the middle chunk. AKA - The amount to chop off bmd to make the middle BitmapData object.
 
_right:int (default = 0) — The width of the right chunk. AKA - The amount to chop off bmd to make the right or bottom BitmapData object. If _middle and _right are omitted, bmd will be chopped according to _left.
clone()method 
public function clone():TileBar

Clones the TileBar.

Returns
TileBar
inheritSkin()method 
public function inheritSkin(parent:TileBar):void

Inherits the skin [or bitmapdata] of the parent TileBar. This is much like the clone function, but instead of creating a new TileBar instance and returning it, it populates the calling TileBar instance with the bitmapdata of the TileBar passed in the parameters.

Parameters
parent:TileBar — The parent TileBar to inherit from.