<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2008 Google Inc. Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)" width="100%" height="100%" /> <mx:Script> <![CDATA[ import com.google.maps.LatLng; import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.MapType; private function onMapReady(event:Event):void { // lat,lng modified by mash to somewhere inside Japan. this.map.setCenter(new LatLng(35.0,135.0), 14, MapType.NORMAL_MAP_TYPE); } ]]> </mx:Script> </mx:Application> Google Maps API for Flash Example