So, I'm making a scroll bar and this is my code for the dragging part of this whole ordeal:
onClipEvent (load){
this.onPress = function(){
this.startDrag(this,false,145,this._x,320,this._x);
}
this.onRelease = function(){
this.stopDrag();
}
this.onReleaseOutside = function(){
this.stopDrag();
}
}
Notice how I used this._x, which is probably the problem. I want the scroll bar to only go up or down. It goes up, down, and LEFT! It hits the limit for up and down perfectly, but the only limit for left seems to be the stage left! How can I stop it from moving left?