Hello all here my code
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.LatLng;
import com.google.maps.MapType;
import com.google.maps.controls.MapTypeControl;
import com.google.maps.controls.ZoomControl;
import com.google.maps.controls.PositionControl;
var map:Map = new Map();
map.key
=
"**************************************************************************************";
map.setSize(new Point(615, 280));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
map.x = 0;
map.y = 00;
this.addChild(map);
function onMapReady(event:Event):void {
map.setCenter(new LatLng(49.016747,2.319974), 14,
MapType.NORMAL_MAP_TYPE);
}
map.addControl(new PositionControl());
private function onMapReady(event:MapEvent):void {
map.setCenter(new LatLng(42.366662,-71.106262), 11,
MapType.NORMAL_MAP_TYPE);
map.addControl(new ZoomControl());
map.addControl(new PositionControl());
map.addControl(new MapTypeControl());
}
And it give me
1013: The private attribute may be used only on class property
definitions.
Can you help me ?
Thank you so much
--
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.