Got it working with no errors

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(parent.getChildByName("local"));///////////////////
local is the container for my_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.

Reply via email to