I have a creationComplete function and I tried what you said but I personally couldn't get it working. I've taken one 2 day course on Flex so I'm still very new to this.
protected function doQuery():void
{
queryTask.execute(query, new AsyncResponder(onResult, onFault));
function onResult(featureSet:FeatureSet, token:Object = null):void
{
routeList.dataProvider = new ArrayCollection(featureSet.features);
}
function onFault(info:Object, token:Object = null):void
{
Alert.show( info.toString() );
}
}
<s:List id="routeList"
x="10" y="10"
width="225" height="575"
rollOverColor="#CCCCCC"
horizontalScrollPolicy="on"
creationComplete="doQuery()"
change="routeList_changeHandler(event)">