From the category archives:

Array

The following example shows how you can loop over an Array in ActionScript 3.0 using the Array class’s every() method.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can loop over an Array object and modify items using the Array class’s forEach() method.

Full code after the jump.

[click to continue…]

{ 2 comments }

I’m sure there is an easier/better way to do this (and I’ll update this post accordingly if I find one) but here is a little sample which takes an array of items and filters out the duplicates.

Full code after the jump.

[click to continue…]

{ 6 comments }