Is it possible to use an arraylist in action script 3? I want to perform simple operations such as add() and remove()?
Thanks
Is it possible to use an arraylist in action script 3? I want to perform simple operations such as add() and remove()?
Thanks
The default array primitive in AS3 is already an array list. You can use commands such as .push(object) and .pop() to add and remove to an array without defining its initial length.
Check out the Array reference here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html
If you want to use something similar to remove, use: myArray.splice(myArray.indexOf(object), 1);