1706 posts Time is what you desire most, but waste carelessly.
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+6 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? :)

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

mouse out attached to stage or mouse leave ?

1277 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Interviewed on an Envato blog
+7 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);
1706 posts Time is what you desire most, but waste carelessly.
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+6 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.

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 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.

1706 posts Time is what you desire most, but waste carelessly.
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+6 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