This content has been marked as final. Show 6 replies
mouse up doesn't work?
No. If you mouseUp outide the bounds of the orginal object stopDrag() is not invoked. I even tried to use a timer but that doesnt work either.
I'm using it for a map that is dragging in AS3.0 and my mouse up call a function called stopPan(); Inside stopPan the command to stop dragging my map is
that's is location. it works perfect...
Im using this for starting:
var recct:Rectangle = new Rectangle(0, 0, track.width, 0);
and this for stop drag:
When I let go outside the rectangle it keeps dragging
That was it in short.
Is there anyway to have it stop dragging exactly when it leaves the bounds of the sprite?