| Package | com.rubenswieringa.containers |
| Class | public class SuperViewStack |
| Inheritance | SuperViewStack mx.containers.Canvas |
See also
| Property | Defined by | ||
|---|---|---|---|
| behavior : String
Behavior of this SuperViewStack.
| SuperViewStack | ||
| fade : Number
Degree to which a child should be faded if it's underneath another visible child.
| SuperViewStack | ||
| fadeColor : uint
Color with which to fade a child, defaults to white (0xFFFFFF).
| SuperViewStack | ||
| selectedChild : Container
A reference to the currently visible child container.
| SuperViewStack | ||
| selectedIndex : uint
The zero-based index of the currently visible child container.
| SuperViewStack | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| SuperViewStack | ||
|
addChild(child:DisplayObject):DisplayObject
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
| SuperViewStack | ||
|
addChildAt(child:DisplayObject, index:int):DisplayObject
Adds a child DisplayObject to this Container.
| SuperViewStack | ||
|
getChildAt(index:int):DisplayObject
Returns the child display object instance that exists at the specified index.
| SuperViewStack | ||
|
getChildIndex(child:DisplayObject):int
Returns the index position of a child DisplayObject instance.
| SuperViewStack | ||
|
removeAllChildren():void
Removes all children from the child list of this container.
| SuperViewStack | ||
|
removeChild(child:DisplayObject):DisplayObject
Removes a child DisplayObject from the child list of this Container.
| SuperViewStack | ||
|
removeChildAt(index:int):DisplayObject
Removes a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.
| SuperViewStack | ||
|
setChildIndex(child:DisplayObject, index:int):void
Changes the position of an existing child in the display object container.
| SuperViewStack | ||
|
swapChildrenAt(index1:int, index2:int):void
Swaps the z-order (front-to-back order) of the child objects at the two specified index positions in the child list.
| SuperViewStack | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the selected child Container changes. | SuperViewStack | |||
| Constant | Defined by | ||
|---|---|---|---|
| BEHAVIOR_CHANGED : String = "Behavior of SuperViewStack changed" [static]
Event type for the Event that is dispatched when the selected child Container changes.
| SuperViewStack | ||
| FADESHAPE_NAME : String = "superviewstackfade" [static]
Name of the Shape that is used to simulate fading of Containers.
| SuperViewStack | ||
| NORMAL : String = "ViewStack" [static]
Normal behavior mode, simulating the behavior of the classic ViewStack
| SuperViewStack | ||
| SUPER : String = "SuperViewStack" [static]
Full-feature SuperViewStack behavior mode
| SuperViewStack | ||
| behavior | property |
behavior:String [read-write]Behavior of this SuperViewStack. Can be adjusted during runtime. Values can be either SuperViewStack.SUPER or SuperViewStack.NORMAL. If normal, the SuperViewStack will act like the classic ViewStack.
Implementation public function get behavior():String
public function set behavior(value:String):void
See also
| fade | property |
fade:Number [read-write]Degree to which a child should be faded if it's underneath another visible child. Values range from 0.0 (completely transparent) to 1.0 (no transparency), defaults to 0.6.
Implementation public function get fade():Number
public function set fade(value:Number):void
| fadeColor | property |
fadeColor:uint [read-write]Color with which to fade a child, defaults to white (0xFFFFFF).
Implementation public function get fadeColor():uint
public function set fadeColor(value:uint):void
| selectedChild | property |
selectedChild:Container [read-write]A reference to the currently visible child container.
Implementation public function get selectedChild():Container
public function set selectedChild(value:Container):void
See also
| selectedIndex | property |
selectedIndex:uint [read-write]The zero-based index of the currently visible child container.
Implementation public function get selectedIndex():uint
public function set selectedIndex(value:uint):void
See also
| SuperViewStack | () | constructor |
public function SuperViewStack()Constructor.
| addChild | () | method |
public override function addChild(child:DisplayObject):DisplayObjectAdds a child DisplayObject instance to this DisplayObjectContainer instance. Adjusted to make sure that (if reverse is set to true) children are created from top to bottom.
Parameterschild:DisplayObject — The DisplayObject to add as a child of this Container.
|
DisplayObject — The added child as an object of type DisplayObject.
|
See also
| addChildAt | () | method |
public override function addChildAt(child:DisplayObject, index:int):DisplayObjectAdds a child DisplayObject to this Container. The child is added at the index specified. Adjusted to make sure that (if reverse is set to true) children are created from top to bottom.
Parameterschild:DisplayObject — The DisplayObject to add as a child of this Container.
|
|
index:int — The index to add the child at.
|
DisplayObject — The added child as an object of type DisplayObject.
|
See also
| getChildAt | () | method |
public override function getChildAt(index:int):DisplayObjectReturns the child display object instance that exists at the specified index.
Parametersindex:int — The index position of the child object.
|
DisplayObject — The child display object at the specified index position.
|
See also
| getChildIndex | () | method |
public override function getChildIndex(child:DisplayObject):intReturns the index position of a child DisplayObject instance.
Parameterschild:DisplayObject — The DisplayObject instance to identify.
|
int — The index position of the child display object to identify.
|
See also
| removeAllChildren | () | method |
public override function removeAllChildren():voidRemoves all children from the child list of this container.
See also
| removeChild | () | method |
public override function removeChild(child:DisplayObject):DisplayObjectRemoves a child DisplayObject from the child list of this Container.
Parameterschild:DisplayObject — The DisplayObject to remove.
|
DisplayObject — The DisplayObject instance that was removed.
|
See also
| removeChildAt | () | method |
public override function removeChildAt(index:int):DisplayObjectRemoves a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.
Parametersindex:int — The child index of the DisplayObject to remove.
|
DisplayObject — The DisplayObject instance that was removed.
|
See also
| setChildIndex | () | method |
public override function setChildIndex(child:DisplayObject, index:int):voidChanges the position of an existing child in the display object container.
Parameterschild:DisplayObject — The child DisplayObject instance for which you want to change the index number.
|
|
index:int — The resulting index number for the child display object.
|
See also
| swapChildrenAt | () | method |
public override function swapChildrenAt(index1:int, index2:int):voidSwaps the z-order (front-to-back order) of the child objects at the two specified index positions in the child list.
Parametersindex1:int — The index position of the first child object.
|
|
index2:int — The index position of the second child object.
|
See also
| change | event |
mx.events.IndexChangedEvent
Dispatched when the selected child Container changes.
| BEHAVIOR_CHANGED | constant |
public static const BEHAVIOR_CHANGED:String = "Behavior of SuperViewStack changed"Event type for the Event that is dispatched when the selected child Container changes.
See also
| FADESHAPE_NAME | constant |
public static const FADESHAPE_NAME:String = "superviewstackfade"Name of the Shape that is used to simulate fading of Containers.
| NORMAL | constant |
public static const NORMAL:String = "ViewStack"Normal behavior mode, simulating the behavior of the classic ViewStack
See also
| SUPER | constant |
public static const SUPER:String = "SuperViewStack"Full-feature SuperViewStack behavior mode
See also