Packagecom.addicted2flash.layout.util
Classpublic class Space
SubclassesMargin, Padding

This class represents an encapsulation of space around an object.



Public Properties
 PropertyDefined by
  bottom : Number
Space
  horizontal : int
[read-only] Returns the sum of left and right space.
Space
  left : Number
Space
  right : Number
Space
  top : Number
Space
  vertical : int
[read-only] Returns the sum of top and bottom space.
Space
Public Methods
 MethodDefined by
  
Space(top:Number = 0, right:Number = 0, bottom:Number = 0, left:Number = 0)
Creates a new Space object.
Space
  
toString():String
Returns the string representation of Space.
Space
Property detail
bottomproperty
public var bottom:Number
horizontalproperty 
horizontal:int  [read-only]

Returns the sum of left and right space.

Implementation
    public function get horizontal():int
leftproperty 
public var left:Number
rightproperty 
public var right:Number
topproperty 
public var top:Number
verticalproperty 
vertical:int  [read-only]

Returns the sum of top and bottom space.

Implementation
    public function get vertical():int
Constructor detail
Space()constructor
public function Space(top:Number = 0, right:Number = 0, bottom:Number = 0, left:Number = 0)

Creates a new Space object.

Parameters
top:Number (default = 0) — space to the top
 
right:Number (default = 0) — space to the right
 
bottom:Number (default = 0) — space to the bottom
 
left:Number (default = 0) — space to the left
Method detail
toString()method
public function toString():String

Returns the string representation of Space.

Returns
String — the string representation of Space