I had the same problem when using objects of type "object" in the
ArrayCollection!

I fixed it by creating a custom class and putting objects of this
custom class type in the ArrayCollection

BAD:
----
<ArrayCollection>
  <Array>
    <mx:Object label="blabla"/>
    <mx:Object label="blabla2"/>
  </Array>
</ArrayCollection


GOOD:
-----
<ArrayCollection>
  <Array>
    <classes:MyTileObject label="blabla"/>
    <classes:MyTileObject label="blabla2"/>
  </Array>
</ArrayCollection


And the MyTileObject class looking like that:

public class MyTileObject
{
  public var label:String = "";
}               


Hope this helps :)
Damien


--- In [email protected], Adnan Doric <[EMAIL PROTECTED]> wrote:
>
> I tried this with no success, my TileList items are still not updated. 
> Maybe something is broken in TileList binding.
> 
> Thank you :)
> 
> Jon Bradley wrote:
> > Something like the following process:
> >
> > myCollection.enableAutoUpdate();
> > myCollection.itemUpdated(someItem, 
> > someProperty,someOldValue,someNewValue);
> > myCollection.disableAutoUpdate();
> > myColleciton.refresh(); // just to be sure
> >
> > I have it working fine with the itemUpdated and refresh. I usually 
> > don't bother with the auto update stuff - but it might be needed for 
> > your scenario.  From what I understand, refresh() should always cause 
> > a data binding event for the TileList to update it's data.
> >
> > good luck,
> >
> > jon
> >
> >
> > On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:
> >
> >> Hello all,
> >>
> >> I have a TileList binded to an ArrayCollection.
> >>
> >> If I add more items to the ArrayCollection the TileList updates,
but if
> >> I try to change an already existing item in the ArrayCollection, the
> >> TileList doesn't change.
> >>
> >> I tried with List component and I don't have this problem, the
view is
> >> correctly updated.
> >>
> >> Is there something I'm doing wrong or not doing :) ?
> >>
> >> Thank you for your response
> >
> >
>


Reply via email to