all groups > flash data integration > september 2005 >
You're in the

flash data integration

group:

how to create a dataBinding?



how to create a dataBinding? Mark.P.
9/26/2005 5:04:54 PM
flash data integration: I'm having problems creating a binding between a List Component linked to an Accordion Component and a DataSet. Can anyone help with this?

Re: how to create a dataBinding? Mark.P.
9/26/2005 6:18:41 PM
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);
AddThis Social Bookmark Button