Not sure if you can reload the app but why don't you use a try catch
block to see if the api key has loaded into your string an then if
not, set a small timer and try again. If the key has loaded then ini.
the app. You may want to create a textfield to see what the key is to
make sure it is getting sent correctly.

Daniel
www.vindamedia.com

On 3/24/10, ill tempered marmot <[email protected]> wrote:
> I have a Flex app that uses Google Maps and I want to pass the API key
> in via a FlashVar so that people can deploy the app without having to
> recompile it with a new key. It appears though that the Map object is
> not getting the key because the app always comes up with an invalid
> API key error.
>
> So I'm wondering two things.... is it because the setting of the key
> is happening too late? I set the key in the applicationComplete method
> of the app, is this too late for the Map component? If it is, is there
> another way I can get it to the component ? Perhaps there is a re-init
> method for the Map component that would recognise the new key?
>
> Thanks for any help,
>
> Paul
>
> --
> 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.
>
>

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