Okay, I finally found a solution that works. I declare
[Bindable]
private var _rscAndNewXLC: XMLListCollection;
Then my event handler looks like this:
private function handleRscListResult(event:ResultEvent):void{
var resultXML : XML = XML(event.result);
_rscAndNewXLC = getRscAndNew(resultXML.children());
rscBox.rscListCB.dataProvider = _rscAndNewXLC;
rscBox.rscListCB.selectedIndex=0;
}
and my function getRscAndNew:
private function getRscAndNew(rscXL: XMLList):XMLListCollection{
var retval:XMLListCollection =
new XMLListCollection(rscXL.copy());
retval.addItemAt(NEW_RSC_XML, 0);
return retval;
}
This is populating the ComboBox correctly with "--New Resource" as
the default selected item, and the single resource returned from the
HTTPService call as the 2nd item in the box.
After reading
http://blogs.adobe.com/aharui/2007/03/arraycollection_arrays_and_ser.
html, I decided that the ArrayCollection data structure is the wrong
choice here.
I hope this is helpful to others.
LG