I had two maps in my .mxml. One so old I forgot about it. After deleting that, I now see I reqeust the correct key. (I probably was requesting two keys before and stopped in wireshare on finding the first occurrence.
I still get the Map Init/API Key error, but I see more in the wireshark. It shows that 209.85.225.113 (mapsapi/publicapi) is reporting HTTP/ 1.1 404 Not Found (text/html) in response to the file/key packet Any idea what causes this? I am using the key registered as "http:// <my server>/<my file>.swf" Should I generate a key for "http://<my company>,com" instead? I'm not sure of the scope of the domain that I need to register. Thanks, Homer On Apr 8, 3:09 pm, pamela fox <[email protected]> wrote: > Hi Homer- > The key can also be set in your AS3 and in your HTML files. Have you checked > those to make sure they're not sending in keys? > > FYI, you should only need to register for the domain:http://domain.com > > - pamela > > > > On Thu, Apr 9, 2009 at 5:54 AM, homer <[email protected]> wrote: > > > Upon further checking, I see that the key used in wireshark capture is > > the same key I was using for my "localhost" development on my laptop, > > prior to getting new keys to test on an web server. Why is Flex > > Builder compiling my .swf with the old Maps API key? > > > Thanks, > > > Homer > > > On Apr 8, 2:49 pm, homer <[email protected]> wrote: > > > I am having API Ke problems moving my flex map application from my > > > development pc to a local server, which is behind my firewall. > > > > I got several keys and none work. I have tried the following: > > > http://<server> > > > http://<server>/<file>.html > > > http://<server>/<file>.swf > > > > I ran wireshark and see the following call: > > > > GET /mapsapi/publicapi?file=flashapi&url=http%3A%2F%2F<my server> > > > %2F<my file>.swf&key=<a key but not mine?>&v=1.9&flc=x HTTP/1.1\r\n > > > > Upon closer checking, I see that the trailing portion of the key does > > > not match the key I obtained and am using in Flex Builder. > > > The key I obtained for the .swf file is > > > ... > > > ABQIAAAAWHZrWlMGraBjHwVdHSaHlxQWz8HnqywzngDz96mOab6bMnZA8BSF_oMmTovHp0O2MtWyXHdr34K7Wg > > > This key is what I use in the MX map declaration. > > > > <maps:Map > > > xmlns:maps="com.google.maps.*" > > > id="map" > > > mapevent_mapready="onMapReady(event)" > > > width="100%" > > > height="100%" > > > key="ABQIAAAAWHZrWlMGraBjHwVdHSaHlxQWz8HnqywzngDz96mOab6bMnZA8BSF_oMmTovHp0O2MtWyXHdr34K7Wg" > > > visible="true" > > > /> > > > > The key I see in wireshark: > > > GET /mapsapi/publicapi?file=flashapi&url=http%3A%2F%2F<server> > > > %2F<file>.swf&key=ABQIAAAAWHZrWlMGraBjHwVdHSaHlxRt8ppnWrojFEZjxwI- > > > UsfN6Y1yKBSH-wqpjLV55lRwyw4fQU3bxnPtmw&v=1.9&flc=x HTTP/1.1\r\n > > > > I have cleared cache on both IE and Firefox. Both give me the Map > > > Init error, and both use the same key in wireshark captures. > > > > Any help greatly appreciated. > > > > Homer- 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 -~----------~----~----~----~------~----~------~--~---
