6 Replies Latest reply on Apr 20, 2010 12:18 PM by Matt Le Fevre

    [Bindable] ArrayCollection

    mike2281 Level 1
      I have an singleton class marked Bindable and is ised to store app data, it has an array collection that I bind to a custom control.

      public var array:ArrayCollection = new ArrayCollection();

      I call a websercive and populate the array collection, when this happens the binding does not update, I changed the code to create a new array collection and if I set the array property on the singleton app data class the binding updates, but if I just use addItem() to the array collection the databinding never updates.

      I also tried calling disableAutoUpdate() prior to adding the items and then calling enableAutoUpdate() when done, which also did not work.

      Looking at the docs adding items to an array collection should trigger the binding. I did see something about binding issues accross namespaces and the custom control is in a different package.

      Any Ideas?