Has the following code failed you ?
...blah .... blah
[Bindable] public var myCollection:ArrayCollection;
List list = new List();
list.dataProvider = myCollection;
Or you could use getter/setters
private var _list:List;
private var _myCollection:ArrayCollection;
public function set myCollection( collection:ArrayCollection ):void
myCollection = collection;
_list.dataProvider = _myCollection;
See , it's not too difficult.
thank youi very much for taking time to read and write a reply.
Yeh, I tried it wxactly as u have suggested.
Let me explain why I was asking this question.
I have the following setup: (the code is incomplete and only for illustration)
mainapp //includes a singleton getter named instance
CRUD_and_Dataholder /* this Component includes Dataservices and
a ArrayCollection ( lets call it myAC ) with its actual Data*/
view //this is the GUI
The List Components Dataprovider, in 'view', is bound to mainapp.instance.CRUD_and_Dataholder.myAC;
Anything is starting good, but the binding is not updating.
I bet it has something to do with the initializing sequence of the components.
How would you solve such kind of things?
I thik this was the missing part of the puzzle.
A while back I realized a project using cairngorm. I discontinued using it since its repetitive code.
Now I found SWIZ which seems to be the solution to all my wishes