Greetings from Boise!

I'm parsing a successfully URLLoaded .xml file (now an XMLList) with
the following code:

for(var i:uint = 0; i<propertyList.length(); i++) {

     var address:String = markerXML.Address;
     var propertyLat:Number = markerXML.GoogleLatitude;
     var propertyLong:Number = markerXML.GoogleLongitude;

mapA.addEventListener(MapEvent.MAP_READY, addMarker);

     function addMarker(e:MapEvent):void {

          var markerLatLng:LatLng = new
LatLng(markerXML.GoogleLatitude, markerXML.GoogleLongitude);

          var markerOptions = new MarkerOptions({hasShadow: true,
tooltip: String(markerXML.Address)});

          var propertyMarker = new Marker(markerLatLng,
markerOptions);

          mapA.addOverlay(propertyMarker);

     }
}


All of the above is contained in a single Event Handler for the
successful URLLoader COMPLETE. I'm looping through the .xml of 10
different properties but again...only the last one posts.

I'm certain that this is just a pre-dawn/working all night brain
misfire. What's missing, please?

Thanks!


Everything works great(!) except for the fact that a Marker is posted
only for the last element in the .xml list.

-- 
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.

Reply via email to