Google map api & flash cs4

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Popit

Thread Starter
Joined
Jan 5, 2007
Messages
87
I'm trying to make a google map driving simulator with flash. Similar to this:
http://geoquake.jp/en/webgame/DrivingSimulatorPerspective/
or this
http://geoquake.jp/en/webgame/DrivingSimulatorGM/

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:
Code:
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);
this.addChild(map);

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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Members online

Top