Friday 19 December 2008

API Key initailization bug for flash google map

Google Maps API for Flash This API lets flash/Flex developers embed Google Maps in Flash applications.

While generating the API key you have to specify the exact URL of the website in which the application will be hosted otherwise it will throw an error "Initialization failed: please check the API key, swf location, version and network availability"

If you created the API key with your IP or doamin adress and after hosting if you browse it with the actual URL the application wont work for the same key.

Cheers and Have fun with Flash
Harish

6 comments:

  1. What about an AIR app? There isn't a URL or IP per se

    ReplyDelete
  2. http://code.google.com/apis/maps/documentation/flash/tutorial-flexbuilder.html#AIRDevelopment


    check this for AIR application dude there is some changes for AIR...

    ReplyDelete
  3. Initialization failed: please specify an application URL

    getting this error was refering this page for http://layersmagazine.com/integrate-google-maps-into-flash-cs4.html

    NOT ABLE TO TEST THE MAP IN STEP 7.. USING CS5

    Any help appreciable . Thank you

    ReplyDelete
  4. So anyone had this problem solve i have the same issue!

    ReplyDelete
  5. private var _url:String = "http://www.yoursite.com";
    /////////////////////////////////
    private var mapaTF:Map = new Map();
    mapaTF.url= _url;

    ReplyDelete