Select to view content in your preferred language

Configuration Data

550
1
03-24-2011 07:50 AM
KennMurphy
Emerging Contributor
I'm working on an outage map and I would like to know if there is a way to read data from a local (on the same server in the same folder) file into my flex application?

TIA,
Tags (2)
0 Kudos
1 Reply
KennMurphy
Emerging Contributor
Nevermind! I got it figured out! What i ended up doing was:

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();
}
0 Kudos