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

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

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -