var x:XML = XML(event.result); pntList = x..entry; for (var i:int = 0; i < pntList.length(); i++){ var latlong:Array = pntList.point.split(" "); var attributes:Object = new Object(); attributes.name = pntList.name; // attributes["name"] attributes.region = pntList.region; // attributes["region"] attributes.summary = pntList.summary; // attributes["summary"]
private function mClick(event:MouseEvent):void { var gra:Graphic = event.target as Graphic; var vbox:VBox = new VBox(); vbox.height = 40; vbox.width = 170; vbox.label = gra.attributes.name.toString(); var button:Button = new Button(); button.height = 40; button.width = 170; button.label = gra.attributes.region.toString(); button.addEventListener(MouseEvent.CLICK, click); vbox.addChild(button); map.infoWindow.content = vbox; map.infoWindow.closeButton.height = 15; map.infoWindow.closeButton.width = 15; map.infoWindow.show(gra.geometry as MapPoint); }
private function click(event:MouseEvent):void { navigator.pushView(Properties); }
Solved! Go to Solution.
If you want to pass some data from one view to another (for example an ArrayCollection or some other Data Model), then you can use the second argument of the navigator.pushView() method:
navigator.pushView(SecondScreen, myData);