Package | spark.components.supportClasses |
Class | public class DisplayLayer |
Inheritance | DisplayLayer EventDispatcher Object |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
overlay
property of Group
and DataGroup
.
Related API Elements
Public Properties
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
numDisplayObjects : int [read-only]
Number of objects in the DisplayLayer. | DisplayLayer | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object |
Public Methods
Method | Defined By | ||
---|---|---|---|
Constructor. | DisplayLayer | ||
Adds a displayObject with the specified depth to the ordered list. | DisplayLayer | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Returns the DisplayObject with the specified index. | DisplayLayer | ||
Returns the depth for the specified DisplayObject. | DisplayLayer | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes the specified displayObject from the sorted list. | DisplayLayer | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Property Detail
numDisplayObjects | property |
Constructor Detail
DisplayLayer | () | Constructor |
public function DisplayLayer()
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor.
Method Detail
addDisplayObject | () | method |
public function addDisplayObject(displayObject:DisplayObject, depth:Number = NaN):DisplayObject
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
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.
|
DisplayObject — The index of the object.
|
getDisplayObjectAt | () | method |
public function getDisplayObjectAt(index:int):DisplayObject
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns the DisplayObject with the specified index.
Parameters
index:int — The index of the object.
|
DisplayObject — The object.
|
getDisplayObjectDepth | () | method |
public function getDisplayObjectDepth(displayObject:DisplayObject):Number
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns the depth for the specified DisplayObject.
Parameters
displayObject:DisplayObject — The object.
|
Number — The depth of the object.
|
removeDisplayObject | () | method |
public function removeDisplayObject(displayObject:DisplayObject):DisplayObject
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes the specified displayObject
from the sorted list.
Parameters
displayObject:DisplayObject — The object.
|
DisplayObject — The removed object.
|
Mon Nov 28 2011, 06:48 AM -08:00