flash - How can i get the number of the place in an array (AS3)? -
flash - How can i get the number of the place in an array (AS3)? -
if have array this:
var myarray:array = ["apple","orange","strawberry"];
then want order number of orange, 1, out. there way that?
if want index of "orange" this:
trace(myarray.indexof("orange")); // returns 1
arrays flash actionscript-3
Comments
Post a Comment