Flex3 - action script : How to capture the emptyness of an Array of Object
I would like to know when an Array of objects is empty (or not).
I tried using the ObjectProxy as follow: 开发者_开发知识库
myArrayProxy=new ObjectProxy(myArray);
myArrayProxy.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, changeArrayHandler)
But the event is not fired when the object's content change.
Any idea on how to solve this?
Thanks
You could use an ArrayCollection and listen to the collectionChange event.
精彩评论