Profile

Achievement

first submission:submitting first snipplet

adrianparr's Recent SnippetsTagged array



« Prev 1 Next »
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0 5586 posted 15 years ago by adrianparr
0 1901 posted 15 years ago by adrianparr
I always forget which method does what. This is just as a quick reminder.
4 4456 posted 16 years ago by adrianparr
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.
0 4035 posted 16 years ago by adrianparr
I'm not sure whether I should be using == (Equality) or === (Strict equality) here. I haven't been able to create a situation where it makes much difference. If you know better, feel free to leave me a comment.
0 2347 posted 16 years ago by adrianparr
This SearchArray class was written by Flanture. I claim no credit for this. The class can be downloaded from here ... http://www.box.net/shared/7fj14higai
2 1672 posted 16 years ago by adrianparr
1 1690 posted 16 years ago by adrianparr
« Prev 1 Next »