you can do it this way (with a file as XML source for you info )
var myService:HTTPService = new HTTPService();
myService.url="file.xml";
myService.resultFormat="xml"
myService.addEventListener(ResultEvent.RESULT,serv_result);
myService.send()
marker.addEventListener
(MapMouseEvent.ROLL_OVER,function(event:MapMouseEvent):void
{
marker.openInfoWindow(new InfoWindowOptions
({content:info1+"\n"+info2+"\n"+info3}));
}
);
marker.addEventListener
(MapMouseEvent.ROLL_OUT,function(event:MapMouseEvent):void
{
markerA.closeInfoWindow();
}
);
private function serv_result(evt:ResultEvent):void
{
/* Convert XMLNode to XMLDocument. */
var xmlStr:String = evt.result.toString();
var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
var resultObj:Object = decoder.decodeXML(xmlDoc);
/* Assign the values... */
try
{
info1 = resultObj.root.info1;
info2 = resultObj.root.info2l;
info3 = resultObj.root.info3;
}
catch (erObject:Error)
{
Alert.show(erObject.message);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---