Home > Flex, programming > Navigatable ArrayCollection for Flex

Navigatable ArrayCollection for Flex

I’ve written a NavigatableList class to provide the already handy ArrayCollection class with a simple cursor-like navigation option. You can call list.navigateTo() and provide for instance list.next or list.previous. You also specify the class to which items should belong and you can search for an item with list.findItem(property, value). And finally, you can clone it with list.clone().

Download it here

EDIT: the clone() method didn’t work correctly for some reason. I’ve removed it for now.
EDIT: added an equals() method which compares this list to another list. You  must specify the  name of a unique property which can be used to check if two items are the same.

Categories: Flex, programming Tags:
  1. March 18th, 2008 at 19:04 | #1

    lekker bezig Ralph! Goeie shizzle!

  1. No trackbacks yet.