1 Reply Latest reply on Sep 11, 2007 11:05 AM by peterent

    Changes to one element in a Bindable ArrayCollection is not shown

    P0nderer
      If I have an ArrayCollection that is marked as Bindable and I change the content in of the elements. This change is not propogated to the view.

      What do I have to do in order to get this change visible to the view?

      [Bindable]
      public var menuDataArr :Array = [{label: "myText"}, {label: "yourText"}];
      public var menuData:ArrayCollection = new ArrayCollection(menuDataArr);
      public var itemMenu :Menu;

      public function BaseMenuView() {
      itemMenu = new Menu(true, menuData, true);
      }

      public function changeData() :void {
      this.menuDataArr[0].label = "myText2";
      }

      ......

      The String myText2 is never shown.