How can I use ActionScript to bind XML data to a comboBox component instead of
using the component inspector? (I have done the latter, successfully, but that
doesn?t allow access to the code - .)
My ActionScript so far imports the data (the trace picks it up) ? but the
?cbType.dataProvider line? doesn?t work. It works when I change the data
provider to an array ? so what am I doing wrong?

MY CODE:
import mx.data.components.XMLConnector;
var xcFestival:XMLConnector = new XMLConnector();
xcFestival.ignoreWhite = true;
xcFestival.direction = "receive";
xcFestival.URL = "festivalItems.xml";
xcFestival.trigger();

//POPULATE THE COMPONENTS WITH THE DATA
var festXMLlistener:Object = new Object();
festXMLlistener.result = function(evt:Object) {
trace(xcFestival.results);
cbType.dataProvider = xcFestival.results;
};
xcFestival.addEventListener("result",festXMLlisten er);