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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -