I have a flash AS3 doc and some classes that I created. On
one of the classes, it creats a sprite that may have a scroll bar,
(which i also made - not the UIScrollBar component). This uses the
MOUSE_DOWN event for scrolling.
On some other classes, there are some objects that use the
MOUSE_OVER event.
The problem I have, is that if you click and hold the mouse
button to begin scrolling, then move the cursor outside of this
Movie Clip onto another with the MOUSE_OVER event, then that event
will still fire. Also, if you MOUSE_UP and you are outside the
Movie Clip (with the scrollbar) then the MOUSE_UP event does NOT
fire, and the scrolling is "locked" on until you click inside that
moive clip.
How can I prevent mouse events on objects from firing when
the MOUSE_DOWN event is firing for scrolling? Also, how can I make
it so the MOUSE_UP event will fire no matter where on the stage the
mouse cursor is.
I can't seem to figure it out because the MOUSE_DOWN,
MOUSE_UP and MOUSE_OVER for the different objects have the
eventListeners created in diffferent classes.
thanks.