Can someone please give me an idea on how can I pass my attributes to another view? Please please please. In parsing my attributes, 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"]
In accessing my attributes,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); }
This is my problem how can I pass my attributes to the view, Properties.. Please any idea? I tried some codes but didn't work... Please..private function click(event:MouseEvent):void { navigator.pushView(Properties); }