Packagesekati.collections
Classpublic class DisplayListStack
InheritanceDisplayListStack Inheritance DisplayListCollection
ImplementsIStack

DisplayList base Stack data structure.



Public Properties
 PropertyDefined by
 Inheritedcontainer : DisplayObjectContainer
Return the collection container data
DisplayListCollection
 Inheritedcount : uint
How many items exist within the collection.
DisplayListCollection
 InheritedisEmpty : Boolean
Whether or not this collection is empty.
DisplayListCollection
  top : Object
[read-only] The object at the top of our stack, which would be return and removed on a subsequent call to pop.
DisplayListStack
Public Methods
 MethodDefined by
  
DisplayListStack(container:DisplayObjectContainer = null)
DisplayListStack Constructor creates a new DisplayListStack.
DisplayListStack
 Inherited
clear():void
Removes all items from the collection.
DisplayListCollection
  
The iterator used to handle going through the collection.
DisplayListStack
  
pop():Object
Remove and return the element at the top of the stack.
DisplayListStack
  
push(o:Object):void
Add an element to the bottom of the stack.
DisplayListStack
Property detail
topproperty
top:Object  [read-only]

The object at the top of our stack, which would be return and removed on a subsequent call to pop.

Implementation
    public function get top():Object
Constructor detail
DisplayListStack()constructor
public function DisplayListStack(container:DisplayObjectContainer = null)

DisplayListStack Constructor creates a new DisplayListStack. You may have it wrap an existing DisplayObjectContainer or the constructor will create an empty Sprite for you.

Parameters
container:DisplayObjectContainer (default = null)
Method detail
getIterator()method
public override function getIterator():IIterator

The iterator used to handle going through the collection.

Returns
IIterator
pop()method 
public function pop():Object

Remove and return the element at the top of the stack.

Returns
Object
push()method 
public function push(o:Object):void

Add an element to the bottom of the stack.

Parameters
o:Object