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 }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.