Hello i'm steve and i have a little problem
 this is my code 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 = "ABQIAAAAbxeTu-nJkJWufTnk8hXjKBTjC3JPk-
YPxEaE7tvQqmCSOUZ5ORRjQGU8_DjpPFLtwoCUH1nGxBVduQ";
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( 43.574651,  7.016310), 18,
MapType.NORMAL_MAP_TYPE);
}
private function onMapReady(event:MapEvent):void {
  map.setCenter(new LatLng(42.366662,-71.106262), 11,
MapType.NORMAL_MAP_TYPE);
  map.removeMapType(MapType.HYBRID_MAP_TYPE);
  map.addControl(new MapTypeControl());
}

private function onMapReady(event:MapEvent):void {
  map.setCenter(new LatLng(37.4419, -122.1419), 13,
MapType.NORMAL_MAP_TYPE);

  var bottomRight:ControlPosition = new ControlPosition
(ControlPosition.ANCHOR_BOTTOM_RIGHT, 16, 10);
  var myMapTypeControl:MapTypeControl = new MapTypeControl();
  myMapTypeControl.setControlPosition(bottomRight);
  map.addControl(myMapTypeControl);
}

But the two private function give me the same error "1013: The private
attribute may be used only on class property definitions."

Thank you so much i you can help me :)

-- 
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.

Reply via email to