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

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -