GOOgle maps and the problems of flash cs4

Hello, I have a problem.

I did a site in Flash cs4 with several pages that you enter by clicking on the button.

Then in one of the pages I wanted to insert google map so I did the installation of the google maps.

Then, I entered a keyframe and insert the ActionScript for the google map:


import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.InfoWindowOptions;
import com.google.maps.LatLngBounds;
import com.google.maps.MapMoveEvent;
import com.google.maps.overlays.Marker;
import com.google.maps.overlays.MarkerOptions;
import com.google.maps.interfaces.IPolyline;
com.google.maps.services import. *;

var dir:Directions;
var polyline:IPolyline;
var map: map

function setupMap() {}

map = new Map();
Map.Key = "ABQIAAAA38eqZ79rYEIJwNYsDl4kqO9UF00lgandsoandso... » ;
map.setSize (new Point (800,500));
Map.x = 150;
Map.y = 150;
map.addEventListener (MapEvent.MAP_READY, onMapReady);
this.addChild (map);

}
setupMap();

function onMapReady(event:Event):void {}

dir = new Directions();
dir.addEventListener (DirectionsEvent.DIRECTIONS_SUCCESS, onDirectionsLoaded);
dir. Load ("Belgrade");

}
function onDirectionsLoaded(event:DirectionsEvent):void {}

}

GOOGLE MAP WORK NICE BUT,

I have a problem when I go to another page google map stays on this page too...

with a page from the last keyframe apearing on other pages, I always solved with the entry BLANK KEY FRAMES BETWEEN THEM IN A TIMELINE.

THIS IS ACTIONSCRIPT...

I do not know how to stop google map when I go to the other page, his trips, he...

pls help I have more solutions.

Thank you

I fairly well supplied all the necessary details in what I have described.  Create a new movieclip with nothing in it symbol.  Place it in a frame where you want the card to appear in the timeline and assign it an instance name ("emptyMC" works).  In the code that show you, change...

this.addChild (map);

TO

emptyMC.addChild (map);

This should work unless there is something on Google maps that I know not (which is very likely since I haven't used their is still Flash)

Tags: Adobe Animate

Similar Questions

Maybe you are looking for