Solved

flex : event when an item is removed from a list

Posted on 2011-03-17
2
263 Views
Last Modified: 2012-06-27
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
Comment
Question by:yarekGmail
2 Comments
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 250 total points
ID: 35155780
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
 
LVL 2

Assisted Solution

by:sunsonmahesh
sunsonmahesh earned 250 total points
ID: 35178604
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question