Problem with stopDrag;

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._x100/line._width);
uus_interval = ratio
100;
};

};
dragger.onRelease = dragger.onReleaseOutside = function() {
ratio = Math.round(this._x100/line._width);
uus_interval = ratio
100;
_root.interval = setInterval(_root.uuenda, uus_interval);
}

[/AS]