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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -