9 Replies Latest reply on Jul 26, 2010 5:57 AM by Francisc

    Binding AC of Objects issue

    Francisc Level 3

      Hello!

       

      I have an ArrayCollection variable, acData, which gets populated by the Result Handler of an AMF Method Call.

       

      acData=new ArrayCollection(event.result as Array);

       

      The acData is an AC of objects, having: acData[0].firstName, acData[1].firstName and so on.

       

      acData is also the dataProvider for a List control.

       

      When acData[0].firstName gets changed, it doesn't reflect that change in the List itemRenderer as well.

       

      acData itself is set to be Bindable.

       

      In the Debug View I get this:

      warning: unable to bind to property 'firstName' on class 'Object' (class is not an IEventDispatcher)

       

      How can I make it so that the List reflects changes in the acData objects please?

       

      Note: The I bind acData to the List so:

       

      BindingUtils.bindProperty(myList,"dataProvider",parentApplication,"acData");

       

      myList is in an MXML Component and acData is in the parentApplication.

       

       

      Thank you!