2 Replies Latest reply on Sep 15, 2006 5:55 AM by Diemos

    ArrayCollection.addItem not updating binding

    KenichiM Level 1
      The ArrayCollection.addItem() method should update the binding per documentation, but it does not. I tried calling ArrayCollection.itemUpdated, with not luck.. I also tried using ChangeWatcher, but it does not seem to fire either. However, if I reassign the ArrayCollection instead of addItem, the binding and ChangeWatcher fires.

      In the following code:

      this.customer.orders = new ArrayCollection();

      ChangeWatcher.watch(this.customer, "orders", function(e:PropertyChangeEvent):void
      // do something