Solved

flex : event when an item is removed from a list

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
A procedure for exporting installed hotfix details of remote computers using powershell
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

20 Experts available now in Live!

Get 1:1 Help Now