# Flash MX - startDrag, stopDrag?

**URL:** <https://forum.kirupa.com/t/flash-mx-startdrag-stopdrag/237527>\
**Category:** flash\
**Created:** [August 31, 2007, 1:55am UTC](https://forum.kirupa.com/t/flash-mx-startdrag-stopdrag/237527 "2007-08-31T01:55:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sintax321](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sintax321](https://forum.kirupa.com/u/sintax321)\
**Post date:** [August 31, 2007, 1:55am UTC](https://forum.kirupa.com/t/flash-mx-startdrag-stopdrag/237527/1 "2007-08-31T01:55:52Z")

</div>

I can’t seem to get the MC drag to stop

onClipEvent (enterFrame) {  
if (\_root.x==1) {  
this.\_alpha = 100;  
startDrag(\_root.card\_gallery, true);  
} else {  
this.\_alpha = 0;  
stopDrag();  
this.card\_gallery;  
}  
}

-button rollover code  
on (rollOver) {  
\_root.x = 1;  
\_root.card\_gallery.gotoAndStop(1);  
Mouse.hide();

}  
on (rollOut) {  
\_root.x = 0;  
\_root.card\_gallery.gotoAndStop(0);  
Mouse.show();

}

How do I get the stopDrag to work?
