1

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

1 Answer 1

1

You could use an ArrayCollection and listen to the collectionChange event.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.