hello,

In my ModelLocator class i defined an ArrayCollection:

[Bindable]
[ArrayElementType("cairngorm.vo.FriendVO")]
public var friends:ArrayCollection;

storying the FriendVO object works perfectly, but now i want an event
to fire up whenever i add a new FriendVO object, delete it or change it.
i just tried to use the following command for that:

MyModelLocator.getInstance().friends.addEventListener(CollectionEvent.COLLECTION_CHANGE,createFriendsList);

which should invoke the method  createFriendsList()

private function createFriendsList():void
{  Alert.show("create friendslist"); }

but it is never called, not even when i do
MyModelLocator.getInstance().friends = new ArrayCollection();


can anybody tell me what i am doing wrong?
i really would appreciate any info.


thanks,

marty

Reply via email to