Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets Tagged array



« Prev 1 2
Removes duplicating elements from Array, containing only objects of Point class
0 684 posted 12 years ago by romech
Easily breaks a string into an array of words. *If your string has special characters such as latin, add those characters to the r var. Just like var r:RegExp = /[^\wçàáâãèéêìíîòóôõùúûüÀÁÇÂÃÈÉÊÌÍÎÒÓÔÕÙÚÛÜ¡]+/...
0 1129 posted 12 years ago by izaiasdotcom
Sorts an array of objects using the native sortOn method
0 995 posted 12 years ago by Narayon
0 443 posted 12 years ago by zackattack27
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0 2382 posted 12 years ago by adrianparr
Quite trivial but can be needed sometimes. At least I know where to look when i'll forget it
1 621 posted 13 years ago by gandreini
Sometimes you need special array functions, not build in AS3. Special ArrayUtils class with some static methods can help us :)
5 666 posted 13 years ago by burnandbass
1067: Implicit coercion of a value of type __AS3__.vec:Vector.<com.Gallery:VOItem> to an unrelated type __AS3__.vec:Vector.
0 527 posted 13 years ago by alptugan
vLarger - Larger array vSmaller - Smaller array
2 616 posted 13 years ago by jaredyeo
5 627 posted 13 years ago by jaredyeo
I found this awesome function that allows you to easily remove duplicate values.
4 1437 posted 13 years ago by chrisaiv
2 720 posted 14 years ago by frankyfish
I always forget which method does what. This is just as a quick reminder.
4 2620 posted 14 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 2186 posted 14 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 977 posted 14 years ago by adrianparr
Notes to self: re-use this for other projects
0 1153 posted 14 years ago by abbey
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 628 posted 14 years ago by adrianparr
I found this awesome class by [email protected] and can't help but share it.
1 820 posted 14 years ago by chrisaiv
Consider the following piece of code which compares two arrays to find which elements exist in outerArray that do not exist in innerArray:
0 631 posted 14 years ago by quan
0 503 posted 14 years ago by rvachere
« Prev 1 2