Packageorg.aswing.util
Classpublic class DepthManager

DepthManager to manage the depth of display objects.



Public Methods
 MethodDefined by
  
bringToBottom(mc:DisplayObject):void
[static] Bring the mc to all brother mcs' bottom.
DepthManager
  
bringToTop(mc:DisplayObject):void
[static] Bring the mc to all brother mcs' top.
DepthManager
  
isBottom(mc:DisplayObject):Boolean
[static] Returns if the mc is at bottom depth.
DepthManager
  
isJustAbove(mc:DisplayObject, belowMC:DisplayObject):Boolean
[static] Returns if mc is just first above the belowMC.
DepthManager
  
isJustBelow(mc:DisplayObject, aboveMC:DisplayObject):Boolean
[static] Return if mc is just first bebow the aboveMC.
DepthManager
  
isTop(mc:DisplayObject):Boolean
[static] Returns is the mc is on the top depths in DepthManager's valid depths.
DepthManager
Method detail
bringToBottom()method
public static function bringToBottom(mc:DisplayObject):void

Bring the mc to all brother mcs' bottom.

Parameters
mc:DisplayObject — the mc to be set to bottom

See also

bringToTop()method 
public static function bringToTop(mc:DisplayObject):void

Bring the mc to all brother mcs' top.

Parameters
mc:DisplayObject
isBottom()method 
public static function isBottom(mc:DisplayObject):Boolean

Returns if the mc is at bottom depth.

Parameters
mc:DisplayObject — the mc to be set to bottom

Returns
Boolean — is the mc is at the bottom
isJustAbove()method 
public static function isJustAbove(mc:DisplayObject, belowMC:DisplayObject):Boolean

Returns if mc is just first above the belowMC. if them don't have the same parent, whatever depth they has just return false.

Parameters
mc:DisplayObject
 
belowMC:DisplayObject

Returns
Boolean

See also

isJustBelow()method 
public static function isJustBelow(mc:DisplayObject, aboveMC:DisplayObject):Boolean

Return if mc is just first bebow the aboveMC. if them don't have the same parent, whatever depth they has just return false.

Parameters
mc:DisplayObject
 
aboveMC:DisplayObject

Returns
Boolean
isTop()method 
public static function isTop(mc:DisplayObject):Boolean

Returns is the mc is on the top depths in DepthManager's valid depths. Valid depths is that depths from MIN_DEPTH to MAX_DEPTH.

Parameters
mc:DisplayObject

Returns
Boolean