hey everyone,
i’m starting to ease my way into as3 - finally! and touching a bit of classes…
now - the issue - i need to create a scrollbar for a movieclip (which will contain anything i want there of course - text or images)… the base of my code was taken from forums but i’ve added some functionality to it - like up and down arrows - and this is where the problem is.
-
dragging the scrollbar works fine
-
the up arrow works fine
-
the down arrow doesn’t fire off the MOUSE_UP function which removes the enterframe listener that moves the content
-
i get no errors when compiling…
This is the the relevant code that sets up the listeners:
_theScroller.scrollBar.addEventListener(MouseEvent.MOUSE_DOWN, onDraggerPress, false, 0, true);
_theScroller.scrollBar.addEventListener(MouseEvent.MOUSE_UP, onDraggerUp, true, 0, true);
_theScroller.scrollBar.stage.addEventListener(MouseEvent.MOUSE_UP, onDraggerUp, false, 0, true);
_theScroller.upArrow.addEventListener(MouseEvent.MOUSE_DOWN, upClick, false, 0, true);
_theScroller.upArrow.addEventListener(MouseEvent.MOUSE_UP, upClickStop, false, 0, true);
_theScroller.downArrow.addEventListener(MouseEvent.MOUSE_DOWN, downClick, false, 0, true);
_theScroller.downArrow.addEventListener(MouseEvent.MOUSE_UP, downClickStop, false, 0, true);
THANKS!