Hi,We have been requested by our client to always have snapping enabled when using the draw and edit tools. Basically, they want to be able to have snapping enabled without the need to press the control key.I've tried extending the DrawTool and adding this: if (event.type == MouseEvent.MOUSE_DOWN)
{
ViewerContainer.getInstance().dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, Keyboard.CONTROL, Keyboard.CONTROL));
}
else if (event.type == MouseEvent.MOUSE_UP)
{
ViewerContainer.getInstance().dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, Keyboard.CONTROL, Keyboard.CONTROL));
}
I've tried changing the dispatcher from ViewerContainer, "this", the map, FlexGlobals.topLevelApplication but it seems to be having no effect. Is there a simpler way to do this?ThanksLuke