开发者

Flex3 - action script : How to capture the emptyness of an Array of Object

开发者 https://www.devze.com 2023-02-23 20:50 出处:网络
I would like to know when an Array of objects is empty (or not). I tried using the ObjectProxy as follow:开发者_开发知识库

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消