• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

flex : event when an item is removed from a list

I have a simple list bounded to an ArrayCollection and an itemRenderer.

When I add a new item to the ArrayCollection, I get the event addedToStage: FINE

Trouble is when I remove an item from the ArrayCollection, I never events :
I tried:
remove, removed, removedFromStage** and I need to stop a stream when an item is removed:

So HOW can I get an event when an ITEM is REMOVED ?


Thanks
0
yarekGmail
Asked:
yarekGmail
2 Solutions
 
ChristoferDutzCommented:
The problem is propably that flex recycles itemrenderers, so I wouldn't act on lifecycle events of your item-renderers. Instead I would suggest to add an eventlisener on your arraycollection and bind to CollectionEvent.COLLECTION_CHANGE
Then you will be notified.
0
 
sunsonmaheshCommented:
Hi,

When you remove an item in arraycollection, is it reflecting in list...?

have u tried collectionChange event for that arraycollection..?

--mahe

0

Featured Post

Eye-catchers on the conference table

Challenge: The i-unit group was not satisfied with the audio quality during remote meetings. They were looking for a portable solution with excellent audio quality for use in their conference room but also at their client’s offices.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now