Okay, I'm completely new to programing, but am trying, so please bare with me.
I'm using CS4 and trying to get a nice google map on the front page of a website. (http://asme.unl.edu/home.html) When I control enter I get a blank window (Adobe Flash CS4). I've been trying to following the google code as much as possible. I kept getting error: "1013: The private attribute may be used only on class property definitions.", when I had private in front of function onMapReady, so I deleted it, and now I receive no error. Please, if you are willing to help me, talk in beginners terms only. Thanks! import com.google.maps.LatLng; import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.MapType; import com.google.maps.controls.MapTypeControl; import com.google.maps.controls.ZoomControl; import com.google.maps.controls.PositionControl; function onMapReady(event:Event):void { map.setCenter(new LatLng(40.819103,-96.690867), 14, MapType.NORMAL_MAP_TYPE); map.addControl(new ZoomControl()); map.addControl(new PositionControl()); map.addControl(new MapTypeControl()); var map:Map = new Map(); map.key = "ABQIAAAAK8BTALzxgiL1WjQ6T_oiAhRrAsuEvtuTLVlLoPuHp2OVIvOy9BRFC57Ps5oyYskDSiV_YdQdHeUXWA"; map.setSize(new Point(stage.stageWidth, stage.stageHeight)); map.addEventListener(MapEvent.MAP_READY, onMapReady); this.addChild(map); } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
