Packageorg.flowplayer.util
Classpublic class Arrange



Public Properties
 PropertyDefined by
  hasParent : Boolean = false
[static]
Arrange
  localHeight : Number = 0
[static]
Arrange
  localWidth : Number = 0
[static]
Arrange
  parentHeight : Number = 0
[static]
Arrange
  parentWidth : Number = 0
[static]
Arrange
  set : Boolean = false
[static]
Arrange
Public Methods
 MethodDefined by
  
center(disp:DisplayObject, areaWidth:Number = 0, areaHeight:Number = 0):void
[static] Centers the specified display object to the specified area.
Arrange
  
describeBounds(disp:DisplayObject):String
[static] Returns a string the describes the specified display object's position and dimensions.
Arrange
  
fixPositionSettings(props:DisplayProperties, defaults:Object):void
[static]
Arrange
  
getHeight(disp:DisplayObject):Number
[static]
Arrange
  
getStageHeight(stage:Stage):Number
[static]
Arrange
  
getStageWidth(stage:Stage):Number
[static]
Arrange
  
getWidth(disp:DisplayObject):Number
[static]
Arrange
  
positionPercentage(disp:DisplayObject, container:DisplayObject, edge:int):int
[static] Gets the position of the specified display object relative to another object.
Arrange
  
sameSize(disp:DisplayObject, other:DisplayObject):void
[static] Resize the specified display object to have the same size as the other specified display object.
Arrange
Protected Methods
 MethodDefined by
  
getStageDimension(stage:Stage, dimensionName:String):Number
[static]
Arrange
Property detail
hasParentproperty
public static var hasParent:Boolean = false
localHeightproperty 
public static var localHeight:Number = 0
localWidthproperty 
public static var localWidth:Number = 0
parentHeightproperty 
public static var parentHeight:Number = 0
parentWidthproperty 
public static var parentWidth:Number = 0
setproperty 
public static var set:Boolean = false
Method detail
center()method
public static function center(disp:DisplayObject, areaWidth:Number = 0, areaHeight:Number = 0):void

Centers the specified display object to the specified area.

Parameters
disp:DisplayObject — the object to center
 
areaWidth:Number (default = 0) — width of the centering area
 
areaHeight:Number (default = 0) — height of the centering area
describeBounds()method 
public static function describeBounds(disp:DisplayObject):String

Returns a string the describes the specified display object's position and dimensions.

Parameters
disp:DisplayObject — the object to describe

Returns
String
fixPositionSettings()method 
public static function fixPositionSettings(props:DisplayProperties, defaults:Object):voidParameters
props:DisplayProperties
 
defaults:Object
getHeight()method 
public static function getHeight(disp:DisplayObject):NumberParameters
disp:DisplayObject

Returns
Number
getStageDimension()method 
protected static function getStageDimension(stage:Stage, dimensionName:String):NumberParameters
stage:Stage
 
dimensionName:String

Returns
Number
getStageHeight()method 
public static function getStageHeight(stage:Stage):NumberParameters
stage:Stage

Returns
Number
getStageWidth()method 
public static function getStageWidth(stage:Stage):NumberParameters
stage:Stage

Returns
Number
getWidth()method 
public static function getWidth(disp:DisplayObject):NumberParameters
disp:DisplayObject

Returns
Number
positionPercentage()method 
public static function positionPercentage(disp:DisplayObject, container:DisplayObject, edge:int):int

Gets the position of the specified display object relative to another object. The position is measured from one specified edge of the container object to the center of the queried object. The result can be used in CSS style percentage positioning - to position the specified display object inside the container.

Parameters
disp:DisplayObject — the display object whose position is queried
 
container:DisplayObject — the display object relative to which the position is calculated
 
edge:int — the edge from which the position is calculated from: 0 means that the position is measured from the top, 1 from right, 2 from bottom, and 3 from left

Returns
int
sameSize()method 
public static function sameSize(disp:DisplayObject, other:DisplayObject):void

Resize the specified display object to have the same size as the other specified display object.

Parameters
disp:DisplayObject — the object to resize
 
other:DisplayObject — the object where the size is taken from