Hi Pier- That's probably the best way for now; loading of the API is tied to creation of the Map object.
You could also create the map at a very small size, and change the size when they get to the contact screen. That might be less messy than deleting a Map object. - pamela On Wed, Apr 22, 2009 at 9:19 AM, Pier <[email protected]> wrote: > > I'm working on a website in a country with pretty bad connections... > and it takes a long time for my swf to load the google maps flash API. > > Once it's loaded it works pretty much ok. I can switch to another > section and come back to the contact section (creating new map > objects) and it loads instantly. > > The thing is users don't get at first to the contact section so I > thought of preloading the API, while they are reading other sections. > > I'm thinking of creating a hidden map and when the map init event is > launched delete that object, and of course never add it to the display > list. > > Is there a better way of doing this? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
