Package com.bit101.components
Class public class VBox
Inheritance VBox InheritanceComponent Inheritance flash.display.Sprite



Public Properties
  Property Defined By
  Inherited enabled : Boolean
Sets/gets whether this component is enabled or not.
Component
  Inherited height : Number
[override] Sets/gets the height of the component.
Component
    spacing : Number
Gets / sets the spacing between each sub component.
VBox
  Inherited tag : int
Sets/gets in integer that can identify the component.
Component
  Inherited width : Number
[override] Sets/gets the width of the component.
Component
  Inherited x : Number
[override] [write-only] Overrides the setter for x to always place the component on a whole pixel.
Component
  Inherited y : Number
[override] [write-only] Overrides the setter for y to always place the component on a whole pixel.
Component
Protected Properties
  Property Defined By
  Inherited _enabled : Boolean = true
Component
  Inherited _height : Number = 0
Component
  Inherited Ronda : Class
Component
    _spacing : Number = 5
VBox
  Inherited _tag : int = -1
Component
  Inherited _width : Number = 0
Component
Public Methods
  Method Defined By
   
VBox(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
VBox
   
addChildAt(child:DisplayObject, index:int):DisplayObject
[override] Override of addChild to force layout;
VBox
   
draw():void
[override] Draws the visual ui of the component, in this case, laying out the sub components.
VBox
  Inherited
initStage(stage:Stage):void
[static] Utility method to set up usual stage align and scaling.
Component
  Inherited
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
Component
   
removeChild(child:DisplayObject):DisplayObject
[override] Override of removeChild to force layout;
VBox
   
removeChildAt(index:int):DisplayObject
[override] Override of removeChild to force layout;
VBox
  Inherited
setSize(w:Number, h:Number):void
Sets the size of the component.
Component
Protected Methods
  Method Defined By
  Inherited
addChildren():void
Overriden in subclasses to create child display objects.
Component
  Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
  Inherited
init():void
Initilizes the component.
Component
  Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
  Inherited
onInvalidate(event:Event):void
Called one frame after invalidate is called.
Component
   
onResize(event:Event):void
Internal handler for resize event of any attached component.
VBox
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
Property Detail
_spacing property
protected var _spacing:Number = 5

spacing property  
spacing:Number

Gets / sets the spacing between each sub component.


Implementation
    public function get spacing():Number
    public function set spacing(value:Number):void
Constructor Detail
VBox () Constructor
public function VBox(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this PushButton.
 
xpos:Number (default = 0) — The x position to place this component.
 
ypos:Number (default = 0) — The y position to place this component.
Method Detail
addChildAt () method
override public function addChildAt(child:DisplayObject, index:int):DisplayObject

Override of addChild to force layout;

Parameters

child:DisplayObject
 
index:int

Returns
DisplayObject
draw () method  
override public function draw():void

Draws the visual ui of the component, in this case, laying out the sub components.

onResize () method  
protected function onResize(event:Event):void

Internal handler for resize event of any attached component. Will redo the layout based on new size.

Parameters

event:Event
removeChild () method  
override public function removeChild(child:DisplayObject):DisplayObject

Override of removeChild to force layout;

Parameters

child:DisplayObject

Returns
DisplayObject
removeChildAt () method  
override public function removeChildAt(index:int):DisplayObject

Override of removeChild to force layout;

Parameters

index:int

Returns
DisplayObject