AS3 Search for a Value in Array and Return it's Position Index

/ Published in: ActionScript 3
Save to your folder(s)

If the item cannot be found then the return value is NaN. This function only returns the index of the first occurence found, so it's not very good if you have multiple occurrences of the same value in the array.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.