# Drag Problem

**URL:** https://forum.kirupa.com/t/drag-problem/325467
**Category:** flash
**Created:** [October 17, 2011, 9:24pm UTC](https://forum.kirupa.com/t/drag-problem/325467 "2011-10-17T21:24:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![na\_il](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@na\_il](https://forum.kirupa.com/u/na_il)
#### Post date: [October 17, 2011, 9:24pm UTC](https://forum.kirupa.com/t/drag-problem/325467/1 "2011-10-17T21:24:27Z")

</div>

I remove event listener but it still drags when I try to…whats going on…this stuff is really annoying…wth…

stage.addEventListener(MouseEvent.MOUSE\_DOWN, drag\_1);

function drag\_1(evtObj:MouseEvent){  
mask\_1.startDrag(false, constraints);  
}

stage.addEventListener(MouseEvent.MOUSE\_UP, done\_drag\_1);

function done\_drag\_1(evtObj:MouseEvent){  
mask\_1.stopDrag();  
[//stage.addEventListener](https://stage.addEventListener)(MouseEvent.MOUSE\_DOWN, drag\_1\_1);  
stage.removeEventListener(MouseEvent.MOUSE\_DOWN, drag\_1);  
stage.removeEventListener(MouseEvent.MOUSE\_UP, done\_drag\_1);  
[//stage.addEventListener](https://stage.addEventListener)(MouseEvent.MOUSE\_DOWN, drag\_1\_1);

}

What am I doing wrong now???
