If a Flex/AIR app displays a native title bar, it will have a native system menu that provides Restore, Move, Size, Minimize, Maximize, Close. When "Move" is selected from this native system menu, the move cursor is presented and the keyboard controls then effect the move of the window. But my application does not have a native system menu, so I need to enter this state programmatically in response to selecting "Move" from a custom menu. Is this possible?
NativeWindow.startMove() works fine when called from a mouse event. I.e., in response to a mouse down event from something that behaves like the native title bar. But startMove() has no effect when called in a menu handler. Can it even be used in this way? If so, what do I need to do to make it think it has been invoked from the mouse event? If not, is there an example of how to achieve the similar behavior?