private function loadOutage():void { // load meter data from the outage file var outageLoader:URLLoader = new URLLoader(); outageLoader.addEventListener(Event.COMPLETE, loadComplete); outageLoader.load(new URLRequest("outagedatalist")); } private function loadComplete(event:Event):void { var outageLoader:URLLoader = URLLoader(event.target); query.where = "MeterNumber in (" + outageLoader.data + ")"; doQuery(); }