| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
A DisplayLayer class maintains an ordered list of DisplayObjects sorted on
depth.
You do not instantiate this class, but use the
overlay
property of
Group and
DataGroup.
numDisplayObjects:int [read-only]
| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Number of objects in the DisplayLayer.
Implementation public function get numDisplayObjects():intpublic function DisplayLayer()| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor.
public function addDisplayObject(displayObject:DisplayObject, depth:Number):DisplayObject| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Adds a displayObject with the specified depth to the ordered list.
The position of the displayObject in the sorted lists is based on
its depth.
The object is inserted after all objects with less than or equal
depth value.
Parameters
| displayObject:DisplayObject — The object to add.
|
| |
| depth:Number (default = NaN) — The depth of the object.
|
Returns | DisplayObject — The index of the object.
|
public function getDisplayObjectAt(index:int):DisplayObject| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns the DisplayObject with the specified index.
Parameters
| index:int — The index of the object.
|
Returns | DisplayObject — The object.
|
public function getDisplayObjectDepth(displayObject:DisplayObject):Number| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns the depth for the specified DisplayObject.
Parameters
| displayObject:DisplayObject — The object.
|
Returns | Number — The depth of the object.
|
public function removeDisplayObject(displayObject:DisplayObject):DisplayObject| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Removes the specified displayObject from the sorted list.
Parameters
| displayObject:DisplayObject — The object.
|
Returns | DisplayObject — The removed object.
|
Mon Dec 24 2012, 01:18 PM +11:00