| Package | com.hapticdata |
| Class | public dynamic class AdvArray |
| Method | Defined by | ||
|---|---|---|---|
|
AdvArray(... args)
| AdvArray | ||
|
append(a:Array):uint
add an array to the end of the existing AdvArray
| AdvArray | ||
|
appendAt(a:Array, index:uint = 0):uint
add an array at a given index of the existing AdvArray, defaults to the beginning of the array
| AdvArray | ||
|
clone():Array
makes a deep copy of the current array
Flex3 LiveDocs: In a deep copy, any objects found in the original array are also copied
so the the new array does not point to the same objects as does the original array.
| AdvArray | ||
|
contains(i:*):Boolean
allows you to search the array for a specific value, similar to MovieClip.contains()
| AdvArray | ||
|
pluck(index:int):*
pull an item out of the array by its index and re-sort the array
| AdvArray | ||
|
rotate(inc:int = 1):Array
allows you to specify a positive or negative value to cycle the array, 0 will do nothing
| AdvArray | ||
|
rotateBackwards():Array
allows you to cycle an array one step backwards, placing the last item at the beginning of the array
| AdvArray | ||
|
rotateForward():Array
allows you to cycle an array one step forward, placing the first item at the end of the array
| AdvArray | ||
|
shallowCopy():Array
makes a shallow copy of the current array
Flex3 LiveDocs: In a shallow copy, if the original array has elements that are objects, only the
references to the objects are copied rather than the objects themselves.
| AdvArray | ||
| AdvArray | () | constructor |
public function AdvArray(... args)Parameters
... args |
| append | () | method |
public function append(a:Array):uintadd an array to the end of the existing AdvArray
Parametersa:Array — (Array) the array to append
|
uint — the new length of the array
|
| appendAt | () | method |
public function appendAt(a:Array, index:uint = 0):uintadd an array at a given index of the existing AdvArray, defaults to the beginning of the array
Parametersa:Array — (Array) the array to append
|
|
index:uint (default = 0) — (uint) the index of the array to start placing the new array
|
uint — the new length of the array
|
| clone | () | method |
public function clone():Array
makes a deep copy of the current array
Flex3 LiveDocs: In a deep copy, any objects found in the original array are also copied
so the the new array does not point to the same objects as does the original array.
Array — a deep copy of the current array
|
| contains | () | method |
public function contains(i:*):Booleanallows you to search the array for a specific value, similar to MovieClip.contains()
Parametersi:* — ( the value you are searching the array for
|
Boolean — returns Boolean
|
| pluck | () | method |
public function pluck(index:int):*pull an item out of the array by its index and re-sort the array
Parametersindex:int — (int) the index of the array to pluck
|
* — the item that was removed from the array
|
| rotate | () | method |
public function rotate(inc:int = 1):Arrayallows you to specify a positive or negative value to cycle the array, 0 will do nothing
Parametersinc:int (default = 1) — (int) positive or negative value for direction and amount to rotate the array
|
Array — returns the new AdvArray
|
| rotateBackwards | () | method |
public function rotateBackwards():Arrayallows you to cycle an array one step backwards, placing the last item at the beginning of the array
ReturnsArray — returns the new AdvArray
|
| rotateForward | () | method |
public function rotateForward():Arrayallows you to cycle an array one step forward, placing the first item at the end of the array
ReturnsArray — returns the new AdvArray
|
| shallowCopy | () | method |
public function shallowCopy():Array
makes a shallow copy of the current array
Flex3 LiveDocs: In a shallow copy, if the original array has elements that are objects, only the
references to the objects are copied rather than the objects themselves. The copy points to the same objects as the original does.
Any changes made to the objects are reflected in both arrays.
Array — a shallow copy of the current array
|