8 Replies Latest reply on Feb 23, 2009 6:28 AM by kglad

    google map loading issue

    AttaBoy2 Level 4
      I'm usind the google map API for flash to display a map in a swf file http://www.charliegooddog.org/flashsite/location.swf and it works but when I try to load that swf into a master.swf at level0
      like this this.
      mcLocations.onRelease = function():Void {
      _level0.myMCL.loadClip("location.swf", 5);
      nothing happens. If I put a different swf file in it's place ie." loadClip("anything.swf") " it works fine.
      the file called location.swf is created by loading the googleMapsLibrary componet on stage then writing this actionscript:
      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 = "ABQIAAAAREqiX-rchDAf5rxchuz6dBRZSAW-1vfLGKts_Vg3S2RGCrYxshSlUbYX7JFekp9DzQS-ii3uT0-JeQ";
      // map.setSize(new Point(stage.stageWidth, stage.stageHeight));
      map.setSize(new Point(350, 350));
      map.addEventListener(MapEvent.MAP_READY, onMapReady);

      function onMapReady(event:Event):void {
      map.setCenter(new LatLng(37.123291,-122.119999), 14, MapType.NORMAL_MAP_TYPE);
      the test site where I'm trying to get this working is http://www.charliegooddog.org/flashsite/
      thank in advance for any suggestions.