I am trying to use the Flash MX 2004 DataBinding classes to bind UI components to xML Data. Using the “location” attribute in an EndPoint class I have not found a way to set an XML “attribute” in a XMLConnector. It only works for elements. I have not found a way to set or bind to an attribute in a XML file. Here is a snipplet from my program
var xmlDestination:Object = {component:_level0.xmlconn_out, property:“params”, location:“XMLRequest.Parameters.Parameter.Value”};
var dataholderSource:Object = {component:_level0.dataholder, property:“vlanname”};
var xmlOutBinding = new mx.data.binding.Binding(dataholderSource,xmlDestination);
Now using this code snipplet I can set data to the Value tag if it is an XML element but not to an attribute.
Any pointers ?
thanks
-sanmitra