Hi Farly - That's not the name of the event. Check the reference: http://code.google.com/apis/maps/documentation/flash/reference.html#MapEvent.MAP_PREINITIALIZE
- pamela On Mon, Jun 22, 2009 at 3:22 AM, alisamech<[email protected]> wrote: > > Dear Pamela, > > When i add my script with MAPEVENT_MAPPREINITIALIZE i got this error > > 1119: Access of possibly undefined property MAPEVENT_MAPPREINITIALIZE > through a reference with static type Class. > > This is part of my script: > > public function onContinerInitialize( event:MapEvent ):void > { > map = new Map(); > map.key = "ABQIAAA...."; > map.addEventListener > (MapEvent.MAPEVENT_MAPPREINITIALIZE,onMapPreinitialize); > map.addEventListener( MapEvent.MAP_READY,onMapReady); > mapContainer.addChild(map); > } > > // [BEGIN] LIMITED ZOOM LEVEL > private function onMapPreinitialize(event:MapEvent):void { > var opts:MapOptions = new MapOptions(); > var limitedZoomMapType:IMapType = new MapType > (MapType.NORMAL_MAP_TYPE.getTileLayers(), > MapType.NORMAL_MAP_TYPE.getProjection(), "LimitedZoom > Demo", > new MapTypeOptions({maxResolution: 4, minResolution: > 1})); > opts.mapTypes = [limitedZoomMapType]; > map.setInitOptions(opts); > } > // [END] LIMITED ZOOM LEVEL > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
