I use mouseup in my application.. it seems to work for me. you coudl also play around with MOUSE_LEAVE and ROLL_OVER for the stage (activate the rollover listener for resize whenever you get a RESIZE event, then remove the listener when you have satisfactorily resized)

Cheers,
Lushen


On 1/15/2009 3:56 PM, Aaron Hardy wrote:

Hey folks,

In my project I have a component that is a percentage width of its
containing window. When the user resizes the window, it triggers the
component to update its display list WHILE the user is dragging the
window resize handle. Rather than updating the component's display
while the user is dragging, I'd like to wait until the user lets go of
the drag to update the component's display. Is there an event I can
capture that will tell me when the user releases the mouse button after
a window resize? NativeWindow.resize seems to be dispatched while the
user is resizing. While that's not what I'm looking for, I tried
watching that event and then adding a mouse up event listener to both
the stage and native window to detect when the user then lets go of the
mouse button, but a mouse up event never seems to be dispatched when the
user releases the mouse button after resizing.

Does anyone know of a good way to detect this or know of a creative
workaround? Thanks!

Aaron


Reply via email to