rendered paste body148 var httpService:HTTPService = new HTTPService();
149 httpService.url = _strDownloadScript;
150 httpService.addEventListener(ResultEvent.RESULT, onDownloadResult);
151 httpService.send();
152 }
153
154 private function onDownloadResult(event:Event):void {
155 var httpService:HTTPService = event.target as HTTPService;
156 httpService.removeEventListener(ResultEvent.RESULT, onDownloadResult);
157 Alert.show("I am here" + event.lastResult);
158 //httpService.resultFormat("string");
159 //Alert.show("download complete: " . httpService.lastResult);
160 }