Dragging

I’m curious as to how to drag a move clip but only change the x value, so dragging left and right. Obviously the startDrag() allows you to drag all over. I had tried

map_mc.onPress = function(){
this.startDrag()
this.onEnterFrame = function(){
this._y = 0
}
}
map_mc.onRelease = function(){
delete this.onEnterFrame
stopDrag()
}

which “kinda” works but is far far from perfect. This is more or less makes the movieclip slide from side to side, but like i said, its not perfect. Any ideas?:scream: