Solved

flex : event when an item is removed from a list

Posted on 2011-03-17
2
262 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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…
Learn how the use of a bunch of disparate tools requiring a lot of manual attention led to a series of unfortunate backup events for one company.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now