It’s weird that I didn’t find a discussion about this here.. So let’s say I have a scroller in a transparent SWF in firefox, then I drag my scrollbar, move the mouse off stage while dragging, release the button, and then bring back the cursor, the scrollbar will be magically attached to the cursor without me pushing the button. This is a bug, and I’d like to see if you got any workarounds. Best I can think of is dispatching the MOUSE _UP when the cursor is off stage boundaries. Inside a MOUSE _MOVE and an if statement about the X Y positions like this:
stage.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP))
Do you have a better solution?
Maybe throwing in the browser name with javascript into the system to only do this on firefox? 
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
mouse out attached to stage or mouse leave ?
- Author was Featured
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 5-6 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Referred between 100 and 199 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
stage.addEventListener(Event.MOUSE_LEAVE, mouseLeave);
Tean said
mouse out attached to stage or mouse leave ?
Mouse out is problematic if I have a place on stage that is empty it gets fired if I move the mouse off of anything. The other was the general idea but if I keep the button pressed it will only be fired if I release the button. It would be good but in this scenario flash doesn’t know that I released the button so these are no joy..
rondog said
use the mouse_leave event and do the same things you’re doing in your mouse_up eventstage.addEventListener(Event.MOUSE_LEAVE, mouseLeave);
In that case it stops moving if I drag off stage but continues if I bring back the cursor after I released the button outside the swf.
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Firsh said
Tean said
mouse out attached to stage or mouse leave ?Mouse out is problematic if I have a place on stage that is empty it gets fired if I move the mouse off of anything. The other was the general idea but if I keep the button pressed it will only be fired if I release the button. It would be good but in this scenario flash doesn’t know that I released the button so these are no joy..
I meant attach mouse_out listener to the stage.

