in case it's of some use to someone, here's the code that works:
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import flash.events.MouseEvent;
var mapN:int = 0;
stage.addEventListener(MouseEvent.CLICK, makeAnother);
function makeAnother(e:MouseEvent):void
{
makeMap(mapN);
mapN++;
}
function makeMap(n:int){
var map:Map = new Map();
map.key = "=====key======";
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);
map.x = stage.stageWidth * 0.3 * n;
}
function onMapReady(e:MapEvent):void {
e.target.setSize(new Point(stage.stageWidth * 0.3,
stage.stageHeight));
e.target.setCenter(new LatLng(50.736072,17.992062), 14,
MapType.SATELLITE_MAP_TYPE);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---