private function mainMap_mouseUpHandler(event:MouseEvent):void { event.currentTarget.removeEventListener(MouseEvent.MOUSE_MOVE, mainMap_mouseMoveHandler); event.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, mainMap_mouseUpHandler); mapClickPoint = mainMap.toMapFromStage(event.stageX, event.stageY); if (event.target.parent is Graphic) { selectedGraphic = event.target.parent as Graphic; mainMap.infoWindow.label = selectedGraphic.attributes.NAME; myTextArea.text = "ID : " + selectedGraphic.attributes.ID_ITI+"\n" + "Nombre d'arrêts : " + selectedGraphic.attributes.STOPCOUNT + "\n" + "Coût total : " + selectedGraphic.attributes.TOTAL_COUT; query.geometry = selectedGraphic.geometry; FeatureLayer(iti).selectFeatures(query, FeatureLayer.SELECTION_NEW); mainMap.infoWindow.show(mapClickPoint); } else { iti.clearSelection(); mainMap.infoWindow.hide(); } }Solved! Go to Solution.