var httpServ:HTTPService = new HTTPService(); httpServ.url = "http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/LocalGovernment/Events/MapServer/0?f=json"; httpServ.resultFormat = "text"; httpServ.addEventListener(ResultEvent.RESULT,function(event:ResultEvent):void{processLayerDetails(event)}); httpServ.send(); private function processLayerDetails(event:ResultEvent):void { const rawData:String = String(event.result); const data:Object = JSON.decode(rawData); //do some thing with the data object }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.