Clear an array in Actionscript 3

I personally really like this way of clearing an array’s elements:

Declare your array to use:

var myArray:Array=new Array();
Code language: JavaScript (javascript)

Add elements:

for (var i:Number;i<10;i++) { myArray[i] = "an item"; }
Code language: JavaScript (javascript)

Clear the array:

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments