Hello Morley, To add those controls try adding these to your map variable ...
map.addControl(new ZoomControl()); map.addControl(new PositionControl()); You'll also have to add the import statement for the controls... import com.google.maps.controls.*; Let me know if this helps.... g-luck Burton Podczerwinski http://www.befreestudiosllc.com On Dec 26, 1:07 pm, Morley <[email protected]> wrote: > All i want to do is add pan and zoom controls to my map using as3. > > This is the action script i have in the first frame of my movie: > > import com.google.maps.LatLng; > import com.google.maps.Map; > import com.google.maps.MapEvent; > import com.google.maps.MapType; > > var map:Map = new Map(); > > map.key = "mymapkeyishere"; > 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( 48.861000,-123.500000), 14, > MapType.NORMAL_MAP_TYPE); > > } > > Can someone please re-write this code so that it includes pan and zoom > controls and also so that it opens in a window 700 X 500 pixels??? > > Cheers, Morley -- 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.
