Package | sekati.collections |
Class | public class DisplayListStack |
Inheritance | DisplayListStack DisplayListCollection |
Implements | IStack |
Property | Defined by | ||
---|---|---|---|
container : DisplayObjectContainer
Return the collection container data
| DisplayListCollection | ||
count : uint
How many items exist within the collection.
| DisplayListCollection | ||
isEmpty : 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 |
Method | Defined by | ||
---|---|---|---|
DisplayListStack(container:DisplayObjectContainer = null)
DisplayListStack Constructor creates a new
DisplayListStack . | DisplayListStack | ||
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 |
top | property |
top:Object
[read-only]
The object at the top of our stack, which would be return and removed on a
subsequent call to pop
.
public function get top():Object
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.
container:DisplayObjectContainer (default = null )
|
getIterator | () | method |
public override function getIterator():IIterator
The iterator used to handle going through the collection.
ReturnsIIterator |
pop | () | method |
public function pop():Object
Remove and return the element at the top of the stack.
ReturnsObject |
push | () | method |
public function push(o:Object):void
Add an element to the bottom of the stack.
Parameterso:Object |