Package | com.gestureworks.cml.utils |
Class | public class ChildList |
Inheritance | ChildList ![]() ![]() |
Subclasses | CMLObjectList |
The structure is comprised of:
var cl:ChildList = new ChildList(); cl.append("s1", new Sprite()); cl.append("s2", new TouchSprite()); cl.reset();0 trace(cl.next());
See also
Method | Defined By | ||
---|---|---|---|
ChildList(weakKeys:Boolean = false) | ChildList | ||
![]() | append(key:*, value:*):void
Appends a value to the keys
| LinkedMap | |
getClass(value:Class, index:int = -1):*
Returns a LinkedMap of objects that are of the
specified AS3 class if no second argument is given. | ChildList | ||
getCSSClass(value:String, index:int = -1):*
Returns a LinkedMap of objects that are of the
specified CSS class if no second argument is given. | ChildList | ||
![]() | getIndex(index:int):*
Returns the value by index
| LinkedMap | |
![]() | getKey(key:*):*
Returns the value by key
| LinkedMap | |
![]() | getKeyArray():Array
Returns an array of keys. | LinkedMap | |
![]() | getValueArray():Array
Returns an array of values
| LinkedMap | |
![]() | hasKey(key:*):Boolean
Returns true if key exists
| LinkedMap | |
![]() | hasNext():Boolean
Returns true if the iteration can return one more than the current index
| LinkedMap | |
![]() | hasPrev():Boolean
Returns true if the iteration can return one less than the current index
| LinkedMap | |
![]() | hasValue(value:*):Boolean
Returns true if value exists
| LinkedMap | |
![]() | insert(index:int, key:*, value:*):void
Inserts a new key and value by index
| LinkedMap | |
![]() | next():*
Returns the next value
| LinkedMap | |
![]() | prepend(key:*, value:*):void
Prepends a key and value
| LinkedMap | |
![]() | prev():*
Returns the previous index
| LinkedMap | |
![]() | remove():void
Removes a key, value at current index
| LinkedMap | |
![]() | removeByValue(value:*):void
Removes a key, value pair by value
| LinkedMap | |
![]() | removeIndex(index:int):void
Removes a key, value pair by index
| LinkedMap | |
![]() | removeKey(key:*):void
Removes a key, value pair by key
| LinkedMap | |
![]() | replace(key:*, value:*):void
Replaces a key, value pair at the current index
| LinkedMap | |
![]() | replaceKey(key:*, value:*):void
Replaces a value by key. | LinkedMap | |
![]() | reset():void
Resets the current index to zero
| LinkedMap | |
![]() | search(value:*):int
Searches by value and returns the first index found
| LinkedMap | |
![]() | searchAll(value:*):Array
Searches by value and returns an array of indices found
| LinkedMap | |
![]() | selectIndex(index:int):*
Returns a value by index and increments the current index
to the provided index parameter
| LinkedMap | |
![]() | selectKey(key:*):*
Returns a value by key and increments the current index
to the provided index parameter
| LinkedMap | |
![]() | toArray():Array
Returns a multidimensional array of key / value pairs
| LinkedMap |
ChildList | () | Constructor |
public function ChildList(weakKeys:Boolean = false)
weakKeys:Boolean (default = false )
|
getClass | () | method |
public function getClass(value:Class, index:int = -1):*
Returns a LinkedMap of objects that are of the specified AS3 class if no second argument is given. Returns the nth object of the returned LinkedMap if the second argument is present.
Parameters
value:Class | |
index:int (default = -1 )
|
* —
|
getCSSClass | () | method |
public function getCSSClass(value:String, index:int = -1):*
Returns a LinkedMap of objects that are of the specified CSS class if no second argument is given. Returns the nth object of the retuned LinkedMap if the second argument is present.
Parameters
value:String | |
index:int (default = -1 )
|
* —
|