|
-
MouseEvent.MOUSE_UP ERROR and problem
I want to create a custom drag button for various reasons.
I add the event listener MouseEvent.MOUSE_DOWN to call a function which starts a timer to start the drag. This works fine.
I also added an event listener MouseEvent.Mouse_UP to call a function which stops the dragging function.
This button only drags along the y access so the mouse will be outside the button and the MouseEvent.MOUSE_UP will not be executed because the mouse is outside the button.
I would have used an event such which detects mouse_up globally, but none seem to exist.
I also tried adding the event listener for MOUSE_UP to the stage so it can be globally recognized.
This was not allowed though as I had aquired an error,"Cannot access a property or method of a null object reference."
***
In summary how would I be able to recognize a mouse up event globally throughout the swf?
***
Thank You,
TariqM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|