mx.managers.DepthManager
Class for managing the depth (z-order) of objects.
__depthManager
, _childCounter
, _parent
, _topmost
, createClassObject
, createObject
, getDepth
, highestDepth
, holder
, kBottom
, kCursor
, kNotopmost
, kTooltip
, kTop
, kTopmost
, lowestDepth
, numberOfAuthortimeLayers
, reservedDepth
, swapDepths
new DepthManager()
static reservedDepth:Number
static highestDepth:Number
static lowestDepth:Number
static numberOfAuthortimeLayers:Number
static kCursor:Number
static kTooltip:Number
static kTop:Number
static kBottom:Number
static kTopmost:Number
static kNotopmost:Number
static private holder:MovieClip
_childCounter:Number
_topmost:Boolean
createClassObject:Function
createObject:Function
swapDepths:Function
getDepth:Function
_parent:MovieClip
static __depthManager:DepthManager
static function createClassObjectAtDepth(className:Object, depthSpace:Number, initObj:Object):UIObject
create an instance of a class at a depth relative to other content
- Parameters
className
the name of the class depthSpace
either kCursor or kTooltip initObj
object containing initialization properties - Return
- reference to object @tiptext @helpid 3304
static function createObjectAtDepth(linkageName:String, depthSpace:Number, initObj:Object):MovieClip
create an instance of a symbol at a depth relative to other content
- Parameters
linkageName
the linkage name of the symbol in the library depthSpace
either kCursor or kTooltip initObj
object containing initialization properties - Return
- reference to object @tiptext @helpid 3305
function createClassChildAtDepth(className:Function, depthFlag:Number, initObj:Object):UIObject
create an instance of a class at a depth relative to other content
- Parameters
className
the name of the class initObj
object containing initialization properties - Return
- reference to object @tiptext @helpid 3306
function createChildAtDepth(linkageName:String, depthFlag:Number, initObj:Object):MovieClip
create an instance of a symbol at a depth relative to other content
- Parameters
linkageName
the linkage name of the symbol in the library initObj
object containing initialization properties - Return
- reference to object @tiptext @helpid 3307
function setDepthTo(depthFlag:Number):Void
set this object at a particular depth, moving other objects to make room if needed
- Parameters
depthFlag
the desired depth @tiptext @helpid 3308
function setDepthAbove(targetInstance:MovieClip):Void
set this object above the target object, moving other objects including the target object to make room if needed
- Parameters
targetInstance
the target object @tiptext @helpid 3309
function setDepthBelow(targetInstance:MovieClip):Void
set this object below the target object, moving other objects including the target object to make room if needed
- Parameters
targetInstance
the target object @tiptext @helpid 3310
function findNextAvailableDepth(targetDepth:Number, depthTable:Array, direction:String):Number
- Parameters
targetDepth
desired depth depthTable
generated by call to buildDepthTable direction
"up" - look up if something occupies that depth, or "down" - Return
- Number next available depth
function shuffleDepths(subject:MovieClip, targetDepth:Number, depthTable:Array, direction:String):Void
- Parameters
subject
the object we want to move targetDepth
desired depth depthTable
generated by call to buildDepthTable direction
"up" - look up if something occupies that depth, or "down" or undefined - use best judgement
function getDepthByFlag(depthFlag:Number, depthTable:Array):Number
- Parameters
depthFlag
either kTop, kBotton, kTopmost or kNoTopmost depthTable
generated by call to buildDepthTable - Return
- Number a good depth to start with
function buildDepthTable(Void):Array
- Return
- Array a table of the depths of the child objects