Google Maps in Flash
Hi, I've been researching embedding google maps in Flash and have followed the Google Maps API developers guide (after downlaoding and installing the SDK and generating a key). I'm currently using the foloowing code,m but it doesnt seem to work I'm not even seeing the map, and Im getting errors relating to the controls elements I've added. Can anyone help?
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.Controls;
var map:Map = new Map();
map.key = "ABQIAAAAdrPixq2HTFFowI9qjk74wxRIyoY1_2mmZno9JS0jJW-gT85BPRRotnr4suVY_4iicnk27GnnECcjXQ";
map.setSize(new Point(stage.stageWidth, stage.stageHeight));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);
function onMapReady(event:Event):void {
map.addControl(new ZoomControl());
map.addControl(new PositionControl());
map.addControl(new MapTypeControl());
map.setCenter(new LatLng(53.535192,-2.00475), 14, MapType.NORMAL_MAP_TYPE);
var m:Marker = new Marker(new LatLng(53.535192,-2.00475));
map.addOverlay(m);
}
