开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜