Hello,
I have a problem, maybe simple, with my full Flash website and a
Google Map I inserted on it thanks to the Google Map API.
On the frame of the scenario I want that the map appears, I inputed
the below code on the AS3 actions panel (F9).
This works well !
But after the map is loaded,when I change the frame by clicking on
button to go to an another section of the scenario, the map stay
visible...
I tried something with removeChild but without success.
Can someone help me ?
Thank you very much by advance.
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.ZoomControl;
import com.google.maps.controls.PositionControl;
import com.google.maps.controls.MapTypeControl;
import com.google.maps.overlays.MarkerOptions;
import com.google.maps.overlays.Marker;
// Create The Map
var map:Map = new Map();
map.key = "ABQIAAAAXMftiQaDIrn4BAH7l3SWaRTVaQaNI4UiQpiliozpL
XrFad3DfhTooBY8ERMCCqR-em_bgwnOG8O8NQ";
map.setSize(new Point(640, 600));
map.x = 640;
map.y = 250;
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);
function onMapReady(event:MapEvent):void {
map.setCenter(new LatLng(34.991798,135.71957), 18,
MapType.NORMAL_MAP_TYPE);
map.addControl(new ZoomControl());
map.addControl(new PositionControl());
map.addControl(new MapTypeControl());
var marker:Marker = new Marker(
new LatLng(34.991798,135.71957)
);
map.addOverlay(marker);
}
--
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.