1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Google map api & flash cs4

Discussion in 'Software Development' started by Popit, Apr 2, 2010.

Thread Status:
Not open for further replies.
  1. Popit

    Popit Thread Starter

    Jan 5, 2007
    I'm trying to make a google map driving simulator with flash. Similar to this:
    or this

    I got the google map api to work, but I cant get the code for google earth 3d to work.
    Here is the code I found on google's website:
    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    var map:Map = new Map();
    map.key = "your_api_key";
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    map.addEventListener(MapEvent.MAP_READY, onMapReady);
    function onMapReady(event:Event):void {
      map.setCenter(new LatLng(40.736072,-73.992062), 19, MapType.HYBRID_MAP_TYPE);
    This code is action script 3
    I set the map to hybrid. I did not put in my default location yet.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/914259

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice