I want to know when a zoom event happens that isn't completed by the mouse wheel. I know what the active tool is and event listeners on the map:
map.addEventListener(ZoomEvent.ZOOM_END, zoomEndHandler);
map.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
private static function zoomEndHandler(event:ZoomEvent):void {
if ((ToolManager.currentActiveTool == "zoomin") || (ToolManager.currentActiveTool == "zoomout")) {
trace ("*** TRACK EVENT: gis tool zoom");
}
}
private static function mouseWheelHandler(event:MouseEvent):void {
trace ("*** TRACK EVENT: gis tool mousewheel");
}
Easy when the active tool is not "zoomin" or "zoomout", but when the active tool is say "zoomin", I'm having a hard time figuring out how to differentiate between the two.Thoughts?Thanks,Glen