This works
my_map.addEventListener(Event.REMOVED_FROM_STAGE,removedFromStage);
parent.addChild(my_map);
function removedFromStage(e:Event) {
my_map.removeEventListener(MapEvent.MAP_READY, onMapReady);
my_map.removeEventListener(Event.REMOVED_FROM_STAGE,removedFromStage);
parent.removeChild(this);
}
but it gives this error
TypeError: Error #1034: Type Coercion failed: cannot convert
global@365c5101 to flash.display.DisplayObject.
at MethodInfo-1839()
at flash.display::DisplayObjectContainer/removeChild()
at fl.containers::UILoader/_unload()
at fl.containers::UILoader/load()
at holders/loadImage()
at MainPagescat_fla::MainTimeline/Aquatic()
I works perfectly other then that. Gonna try some more stuff, but at
least I know something works.
--
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.