I'm having problems creating a binding between a List Component linked to an Accordion Component and a DataSet. Can anyone help with this?
Thanks
Okay.. I got the binding to work from the dataSet to the List in the Accordion.
Now how to I format it so that it only shows the content from a certain node
as the Label, in this case the <projectName> node. I've been going over a lot
of samples, but they don't make much sense to me.
import mx.data.binding.*;
var src = new EndPoint();
src.component = myDS;
src.property = "items";
src.formatter.label = "<name>";
src.event = "afterLoaded";
var dest = new EndPoint();
dest.component = myAccordion_acc.getChildAt(0).projectList_lst;
dest.property = "dataProvider";
new Binding(src, dest);