# Problem with stopDrag;

**URL:** https://forum.kirupa.com/t/problem-with-stopdrag/165617
**Category:** Uncategorized
**Created:** [October 12, 2005, 3:49pm UTC](https://forum.kirupa.com/t/problem-with-stopdrag/165617 "2005-10-12T15:49:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![yodalr](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yodalr/32/1816_2.png) [@yodalr](https://forum.kirupa.com/u/yodalr)
#### Post date: [October 12, 2005, 3:49pm UTC](https://forum.kirupa.com/t/problem-with-stopdrag/165617/1 "2005-10-12T15:49:39Z")

</div>

how can i make stopDrag command work? Where ever i add it, it won’t work.Still drags it forever. Myby multiple values would help, but i don’t know how to add them. Any ideas how to get this thing work?

[AS]this.ratio = 0;  
dragger.onPress = function() {  
this.startDrag(true, 0, 0, line.\_width, 0);  
this.onEnterFrame = function() {  
ratio = Math.round(this.\_x_100/line.\_width);  
uus\_interval = ratio_100;  
};

};  
dragger.onRelease = dragger.onReleaseOutside = function() {  
ratio = Math.round(this.\_x_100/line.\_width);  
uus\_interval = ratio_100;  
\_root.interval = setInterval(\_root.uuenda, uus\_interval);  
}

[/AS]
