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.
Continue reading ‘Looping over an Array using the every() method in Flex’
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.
Continue reading ‘Looping over an Array using the every() method in Flex’
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.
Continue reading ‘Looping over each item in an Array in ActionScript 3.0′
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.
Continue reading ‘Removing duplicate items from an array using the Array.filter() method’