You should be adding a listener to the array collection for
CollectionEvent.COLLECTION_CHANGE, then check the .kind in the event
handler

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of sgrace99
Sent: Thursday, April 12, 2007 11:36 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] variable change / call a function

 

In my custom Component I have a public bindable array collection (tied
to my model in my 
model locator). I want to call a function when the array collection
changes. How can I detect a 
change in the array collection and call a function in my custom
component? I don't want to 
bind it to component property. I need to call my custom function and
perform several 
operations based on the new data. I have investigated adding a listener
to the 
CollectionEventKind event...but didn't seem to work. Any thoughts? Have
I overlooked the 
obvious? Thanks!

 

Reply via email to