Hi Pazvanti,
I'm not sure if this will work but you might be able to use an
ExternalInterface call to pass in the api key the only problem I could
see with this is if the map tries to fetch data before the key gets
assigned, to avoid the issue you can just not add the map component
until after the api key is passed in. You'd do something like this in
you're flex code, ExternalInterface.addCallback
("javascriptMethodName", flexMethodToCall); then you'd have private
function flexMethodCall(apiKey:String):void in there you'd have it
instantiate and add the map this way the change is in the html/js and
can be changed quickly without re-compilation. This is just about all
I can come up with, or else maybe somehow leaving a swf that pulls the
map on one server and pointing to that swf from you're ones that are
deployed, basically doing some sort of proxy type thing but then you
might run into issues with the crossdomain.xml er security context.
Good luck,
Shaun
PS got excited about the post at first cause I thought someone was
gonna make a cool game on top of the maps API, I've seen a few
"driving" one's but they're all pretty basic and not all that
exciting, I discussed building a age of empires type thing on top of
the maps api with a buddy of mine so if anyone has a few years of free
time let me know :)
On Sep 23, 10:30 am, Pazvanti <[email protected]> wrote:
> I am working on a flash game and I will need a few satellite images.
> Printscreens from google earth are good but the TOS does not allow me
> to use them. So I thought that the maps will do just fine. The problem
> is that the API Key is only for one domain. And If I want to
> distribute the game than I will need an API Key for every website that
> will host the file. And this is next to impossible to compile a SWF
> for every website. Any idea how can I get pass this problem? 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
-~----------~----~----~----~------~----~------~--~---