This function resides at the mapConatiner level which is returned by the getSessionInformation function. This function removes all Dekho map events and deactivates Dekho’s toolbars. This allows the custom tool to set its own map and toolbar events.
var sessionInfo:Object = parentApplication.getSessionInformation();
var mapContainer:Object = sessionInfo.mapContainer;