public static var hasParent:Boolean = false
public static var localHeight:Number = 0
public static var localWidth:Number = 0
public static var parentHeight:Number = 0
public static var parentWidth:Number = 0
public static var set:Boolean = false
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
|
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
public static function fixPositionSettings(props:DisplayProperties, defaults:Object):void
Parameters
public static function getHeight(disp:DisplayObject):Number
Parameters
Returns
protected static function getStageDimension(stage:Stage, dimensionName:String):Number
Parameters
| stage:Stage |
|
| dimensionName:String |
Returns
public static function getStageHeight(stage:Stage):Number
Parameters
Returns
public static function getStageWidth(stage:Stage):Number
Parameters
Returns
public static function getWidth(disp:DisplayObject):Number
Parameters
Returns
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
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
|