alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user manikk
manikk (2)

Index of an Array Element

Function for finding the index of an array element
965 downloads, 13601 views
Download (10.74 KB)

Comments

You need to login to post a comment.

user squadjot
squadjot 16 years ago

Nice, heres s short version =)

function getIndexOf(d:Array, val:Number):Number{
for (i=0; i<=d.length-1; i++) if (d[i] == val) return i;
}