Hi People,

I have a slight problem binding the itemRenderer and dataProvider of a
TileList. The problem is, when the bindings execute, they do it
asynchronously. Ideally I want the dataProvider to change first, then
the itemRenderer.

If they update asynchronously, sometimes they cause screen artifacts -
flickers as one update occurs after the other.

These properties on the tileList (dataProvider/itemRenderer) are bound
to the currently selectedItem of a ComboBox. This selectedItem is an
instance of a custom object, specifying a dataProvider and a custom
itemRenderer for that data.

The idea is that when a user selects an item from the ComboBox (that
item denotes a "type" of media in the application context), then the
TileList will change its dataProvider to the right part of the model,
and switch to using the correct itemRenderer.

So at the moment I'm getting this sequence:

update dataProvider -> screen refresh -> update itemRenderer -> screen refresh

where dataProvider and itemRenderer are interchangable due to the
asynchronicity. Ideally it should be:

update dataProvider -> update itemRenderer -> screen refresh.

So the screen shouldn't update before these bindings have fully
executed. How is it possible to solidifiy this in flex?

Any clues, pointers, links to docs would be v. much appreciated.

Best Regards,
Ciarán

Reply via email to