1685 posts Time is what you desire most, but waste carelessly.
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • Referred between 100 and 199 users
  • Grew a moustache for the Envato Movember competition
  • Exclusive Author
  • Has been a member for 4-5 years
  • Envato Studio (Microlancer) Beta Tester
  • Europe
+1 more
Firsh says

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? :)

1676 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

mouse out attached to stage or mouse leave ?

1277 posts
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 6-7 years
  • Interviewed on the Envato Notes blog
  • Referred between 100 and 199 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+2 more
rondog says
use the mouse_leave event and do the same things you’re doing in your mouse_up event
stage.addEventListener(Event.MOUSE_LEAVE, mouseLeave);
1685 posts Time is what you desire most, but waste carelessly.
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • Referred between 100 and 199 users
  • Grew a moustache for the Envato Movember competition
  • Exclusive Author
  • Has been a member for 4-5 years
  • Envato Studio (Microlancer) Beta Tester
  • Europe
+1 more
Firsh says

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..


use the mouse_leave event and do the same things you’re doing in your mouse_up event
stage.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.

1676 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says


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.

1685 posts Time is what you desire most, but waste carelessly.
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • Referred between 100 and 199 users
  • Grew a moustache for the Envato Movember competition
  • Exclusive Author
  • Has been a member for 4-5 years
  • Envato Studio (Microlancer) Beta Tester
  • Europe
+1 more
Firsh says

I meant attach mouse_out listener to the stage.

Doesn’t work well as I said, if the swf is transparent and there are empty places in the movie :S

by
by
by
by
by
by