# Drag Off Stage Problem

**URL:** <https://forum.kirupa.com/t/drag-off-stage-problem/243119>\
**Category:** flash\
**Created:** [November 2, 2007, 10:40pm UTC](https://forum.kirupa.com/t/drag-off-stage-problem/243119 "2007-11-02T22:40:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icekube12jr](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@icekube12jr](https://forum.kirupa.com/u/icekube12jr)\
**Post date:** [November 2, 2007, 10:40pm UTC](https://forum.kirupa.com/t/drag-off-stage-problem/243119/1 "2007-11-02T22:40:25Z")

</div>

Hi,

Just wondering how to fix this problem.

I’ve got a button in which I startDrag() when the mouse is down on the button. When the mouse is up, stopDrag() is called. So just standard simple dragging.

Problem is, when I drag all the way so that the cursor is off the stage, when I come back on the stage, whether my mouse is down or not, that object is still being dragged. This is a problem when I drag the object, then release off the stage, and come back onto the stage without the mouse button being held down and the object still drags.

How do I fix it so that once I leave the stage, the object which I was dragging loses focus?

icekube12jr
