That is the solution we came up with also, I apologize for not posting it earlier - from your original posts I thought you wanted to access google maps over https: rather than access google maps over http: from a SWF loaded in a secure domain.
The only problem we have at the moment, and I would love to know if you are having the same issue or not, is that the GeoCoding calls don't work in this mode. The map drawing, and most of the other functions work, but sending an address in to get the Lat/Long back always fail with a API key invalid error. Watching the calls out of Firefox using Firebug, it appears that the geocoding calls use a 'url' query parameter to pass the url in when making the call. Instead of being 'https://oursite.com' where the SWF was loaded from, it is setting the query parameter to 'http://https://oursite.com'. My guess is that the function that creates that parameter checks for 'http://' on the beginning of the swf url, and if it is not there adds it. I have promised pamela a small application to demonstrate the problem, but I haven't had time yet. On Apr 20, 6:57 am, pamela fox <[email protected]> wrote: > Thanks, Good clarification. Thor plans to include that in an upcoming FAQ. > > On Fri, Apr 17, 2009 at 10:46 PM, flexible_developer <[email protected]> wrote: > > > Just to be sure no one else makes the same "mistake" as we did: > > > To make your SWF file - that is using the Google Maps functionality - > > work when it is hosted on an https-server, you don't need "SSL support > > for the Flash API". > > "SSL support for the Flash API" really means that you want the > > outgoing calls to the Google Maps server over https. > > > Our story: > > We have written code in Flex and ActionScript that uses the Google > > Maps functionality and results in a SWF file. > > When we hosted that SWF on an http server all worked well. > > But when we hosted that same SWF file on an https server, whenever we > > wanted to visualize a map we got an error. > > That error basically told us that "the parenthttp://maps.googleapis.com/... > > could not access our SWF file (@https://ourdomain) > > So apparantly Google Maps (@ http://) tries to access our SWF file (@ > > https://) > > After quite some frustrating hours of trial and error we managed to > > solve the issue by adding an extra security call in our action script > > code: > > > Security.allowInsecureDomain("maps.googleapis.com"); > > > By adding this, you allow "unsecure" (http) access coming from > > maps.googleapis.com to your swf file. > > > To avoid people having that to discover that again and again > > theirselves I suggested that this knowledge be added to the online > > Google Maps docs. > > Thor Mitchell of Google Maps API Premier Support mailed me to say that > > he will work with their doc writers to get this added to their docs or > > FAQs. > > > Hopefully this is useful information for homer or everyone stumbling > > upon this thread. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
