Return to Snippet

Revision: 48635
at July 6, 2011 23:25 by adrianparr


Initial Code
var myArray:Array = new Array("a", "b", "c", "d", "e", "f");
trace(myArray);
myArray.splice(myArray.indexOf("c"), 1);
trace(myArray);

// OUTPUT
// a,b,c,d,e,f
// a,b,d,e,f

Initial URL

                                

Initial Description

                                

Initial Title
AS3 Remove an element from an array

Initial Tags
array

Initial Language
ActionScript 3