1 Reply Latest reply on Oct 5, 2008 6:34 AM by Newsgroup_User

    CollectionEvent.COLLECTION_CHANGE

    gerraIrkutsk-vtxlyW
      I try to get event of changing in ArrayCollection. If I make such changes: _myAC_2[0] = "four" or _myAC_3[0] = "four", then it works. But if I want to change item in internal Array: _myAC_1[0][0] = "four", then I don't get bubbling of event. Why is it so?
        • 1. Re: CollectionEvent.COLLECTION_CHANGE
          Level 7

          "gerraIrkutsk" <gerram@mail.ru> wrote in message
          news:gc9jj0$dc4$1@forums.macromedia.com...
          >I try to get event of changing in ArrayCollection. If I make such changes:
          > _myAC_2[0] = "four" or _myAC_3[0] = "four", then it works. But if I want
          > to
          > change item in internal Array: _myAC_1[0][0] = "four", then I don't get
          > bubbling of event. Why is it so?

          Because the object in _myAC_1[0] is still exactly the same object. _That_
          is what the collection knows about, and since it is the same object, it
          actually hasn't changed.

          Try

          _myAC_1[0][0]="four";
          _myAC.itemUpdated(_myAC.getItemAt(0));

          HTH;

          Amy