Using Google Maps API for Flash
January 30th, 2009
Hi for all again, well today i ll say something about the Google API for Flash Platform with Actionscript 3. I was looking for Google Maps class and in Lost in Actionscript have some classes for Google, Yahoo and Microsoft maps to make it but was in Google Maps API that i found a most simple way to create one Map into Flash using Actionscript 3. Simple like bellow:
import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.LatLng; import com.google.maps.MapType; var map:Map = new Map(); map.key = "YOUR_GOOGLE_MAP_KEY"; map.setSize(new Point(stage.stageWidth, stage.stageHeight)); map.addEventListener(MapEvent.MAP_READY, onMapReady); addChild(map); function onMapReady(event:Event):void { map.setCenter(new LatLng(-16.69395,-49.309988), 17, MapType.SATELLITE_MAP_TYPE); }
You need create your App Key to use into your code:
map.key = "YOUR_GOOGLE_MAP_KEY";
Create your Key: http://code.google.com/apis/maps/signup.html and see the simple sample:





March 14th, 2010 at 03:58
You know, I gotta tell you, I genuinely enjoy this site and the useful insight. I find it to be refreshing and very informative. I wish there were more blogs like it. Anyhow, I finally decided to write a comment on » Using Google Maps API for Flash | DES 84 – Blog of DES84 Website – I just wanna tell you that you did a great job on this. Cheers mate!