Solved

flex : event when an item is removed from a list

Posted on 2011-03-17
2
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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…
Let’s face it: one of the reasons your organization chose a SaaS solution (whether Microsoft Dynamics 365, Netsuite or SAP) is that it is subscription-based. The upkeep is done. Or so you think.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

724 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