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, swapDepthsnew DepthManager()
static reservedDepth:Numberstatic highestDepth:Numberstatic lowestDepth:Numberstatic numberOfAuthortimeLayers:Numberstatic kCursor:Numberstatic kTooltip:Numberstatic kTop:Numberstatic kBottom:Numberstatic kTopmost:Numberstatic kNotopmost:Numberstatic private holder:MovieClip_childCounter:Number_topmost:BooleancreateClassObject:FunctioncreateObject:FunctionswapDepths:FunctiongetDepth:Function_parent:MovieClipstatic __depthManager:DepthManagerstatic function createClassObjectAtDepth(className:Object, depthSpace:Number, initObj:Object):UIObjectcreate an instance of a class at a depth relative to other content
- Parameters
classNamethe name of the class depthSpaceeither kCursor or kTooltip initObjobject containing initialization properties - Return
- reference to object @tiptext @helpid 3304
static function createObjectAtDepth(linkageName:String, depthSpace:Number, initObj:Object):MovieClipcreate an instance of a symbol at a depth relative to other content
- Parameters
linkageNamethe linkage name of the symbol in the library depthSpaceeither kCursor or kTooltip initObjobject containing initialization properties - Return
- reference to object @tiptext @helpid 3305
function createClassChildAtDepth(className:Function, depthFlag:Number, initObj:Object):UIObjectcreate an instance of a class at a depth relative to other content
- Parameters
classNamethe name of the class initObjobject containing initialization properties - Return
- reference to object @tiptext @helpid 3306
function createChildAtDepth(linkageName:String, depthFlag:Number, initObj:Object):MovieClipcreate an instance of a symbol at a depth relative to other content
- Parameters
linkageNamethe linkage name of the symbol in the library initObjobject containing initialization properties - Return
- reference to object @tiptext @helpid 3307
function setDepthTo(depthFlag:Number):Voidset this object at a particular depth, moving other objects to make room if needed
- Parameters
depthFlagthe desired depth @tiptext @helpid 3308
function setDepthAbove(targetInstance:MovieClip):Voidset this object above the target object, moving other objects including the target object to make room if needed
- Parameters
targetInstancethe target object @tiptext @helpid 3309
function setDepthBelow(targetInstance:MovieClip):Voidset this object below the target object, moving other objects including the target object to make room if needed
- Parameters
targetInstancethe target object @tiptext @helpid 3310
function findNextAvailableDepth(targetDepth:Number, depthTable:Array, direction:String):Number
- Parameters
targetDepthdesired depth depthTablegenerated 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
subjectthe object we want to move targetDepthdesired depth depthTablegenerated 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
depthFlageither kTop, kBotton, kTopmost or kNoTopmost depthTablegenerated 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