Pacchetto | mx.utils |
Classe | public class ArrayUtil |
Ereditarietà | ArrayUtil ![]() |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
ArrayUtil.toArray()
method.
Proprietà pubbliche
Metodi pubblici
Metodo | Definito da | ||
---|---|---|---|
[statico]
Returns the index of the item in the Array. | ArrayUtil | ||
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
[statico]
Ensures that an Object can be used as an Array. | ArrayUtil | ||
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object |
Descrizione dei metodi
getItemIndex | () | metodo |
public static function getItemIndex(item:Object, source:Array):int
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Returns the index of the item in the Array.
Parametri
item:Object — The item to find in the Array.
| |
source:Array — The Array to search for the item.
|
int — The index of the item, and -1 if the item is not in the list.
|
toArray | () | metodo |
public static function toArray(obj:Object):Array
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Ensures that an Object can be used as an Array.
If the Object is already an Array, it returns the object. If the object is not an Array, it returns an Array in which the only element is the Object. As a special case, if the Object is null, it returns an empty Array.
Parametri
obj:Object — Object that you want to ensure is an array.
|
Array — An Array. If the original Object is already an Array,
the original Array is returned. Otherwise, a new Array whose
only element is the Object is returned or an empty Array if
the Object was null.
|
Tue Jun 12 2018, 02:44 PM Z