Hi mediagrin, To remove all the markers you can call clearOverlays(). Then you need to parse out the parts of the XML you want, this basically means translating from xml to actionscript, luckily this isn't all that hard and there's a lot of samples out there learning to use the language reference is key. Check out flex examples as well here's a link pertaining to XMLDocument http://blog.flexexamples.com/2007/09/19/converting-xml-to-objects-using-the-flex-simplexmldecoder-class/ this example is sort of complicated for someone who is just starting and it is flex specific so if you're using Flash you'll have to change all the mxml out for actionscript. When parsing XML you basically use dots to denote each xml node (which looks like an html tag <node> no matter what it's actual name is it's a node) for example <locations> <location> <locName>Some Place</locName> <lat>23.4242</lat> <lng>-93.532</lng> </location> ... </locations> so if you wanted to make a new marker you'd want to do something like for each(var location:XMLNode in locations..location) { theMap.addOverlay(new Marker(new LatLng (location.lat,location.lng))); } I just wrote this out in here so it hasn't been tested but should give you the general idea you'll have to read up some more to get the details and debug a little. When you do parse the data that isn't really happening in a view component, you should try to keep your view elements separate from your control components like loading data, this way you can change the view and the part that loads the data doesn't need to change. If you are learning flex check out "flex in a week" (google it) if you haven't already, its a good starting point. Also check this out about e4x http://www.trilemetry.com/clients/f3gse/partIII/partIIIa/workingWithData_e4x.cfm#
Shaun On Oct 20, 4:59 pm, mediagrin <[email protected]> wrote: > Hello all, > > Does anyone know how to remove all Markers and load a new XML function > from within a infoWindow. > I am very new to AS3 and so need as much help as possible. > > Many thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
