Also, perhaps you already know this, you need to wait until the xml is loaded from your server.
In other words, this won't work in Actionscript 3.0: var myLoader:URLLoader = new URLLoader(); var XML_URL:String = "http://somewhere.com/stuff.xml"; var myXMLURL:URLRequest = new URLRequest(XML_URL); myLoader.load(myXMLURL); xmlList = XML(myLoader.data); trace(xmlList.node.something); you need to listen to myLoader for a "complete" event, and then access xmlList via XML(myLoader.data); I spent a lot of time working in PHP and am now cutting my teeth on ActionScript, which requires a lot of rethinking about event flow in an asynchronous environment. Hope that helps, Drew On Dec 2, 10:47 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]> wrote: > Hi Homig- > > Since you haven't provided a link to your map online for us to debug, > here are my debugging suggestions: > > - Put the PHP URL in the browser and make sure it returns the expected XML. > - Trace to make sure the server responded, and trace the response at > various stages to see if it was responded with anything to Flex, and > if it found the markers in the XML. > - Trace to see if any markers were added to the map, and at what > locations. Perhaps they were loaded at a different lat/lng. > > - pamela > > > > On Wed, Dec 3, 2008 at 7:57 AM, Homig <[EMAIL PROTECTED]> wrote: > > > Hi, > > I want to load XML file, and get from it Name, and LatLng. I have done > > tutorial (http://code.google.com/apis/maps/articles/phpsqlflex.html), > > but when i have got XML with data (loaded from SQL), in my map there > > isn't any marker.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
