For an excercise we also had to use mouseevents.
Problem only if you define MouseEvents as argument you’ll hit the function with mousedown, mouseup, etc…
To solve that problem (that was seperate the mouse up and down) we only had to redefine our arguments/events.
Here is a quote from http://drawlogic.com/2007/06/03/as3-mouse-events-and-mouse-related-user-actions/
Here is a list of all the events that are clearly implemented in AS3:
CLICK : String = “click” MouseEvent
Used to detect mouse clicks.DOUBLE_CLICK : String = “doubleClick” MouseEvent
Used to detect double clicks.MOUSE_DOWN : String = “mouseDown” MouseEvent
Checks when mouse is pressed down.MOUSE_LEAVE : String = “mouseLeave” Event
Monitors when the mouse leaves the stage.MOUSE_MOVE : String = “mouseMove”
Monitors when the mouse moves.MOUSE_OUT : String = “mouseOut”
Monitors when the mouse moves out of the attached to object of the event.MOUSE_OVER : String = “mouseOver”
Monitors when the mouse moves over the attached to object of the event.MOUSE_UP : String = “mouseUp”
Monitors when the mouse moves up the attached to object of the event from a click.MOUSE_WHEEL : String = “mouseWheel”
Monitors when the mouse wheel moves, detect the positive or negative delta property for distance and direction moved.