AS3 Drag restrict y but x is infinite?

I want to be able to drag a MovieClip infinitely on the x-axsis, while being locked a 0 on the y-axsis.

The MovieClip I’m dragging has 2 identical MovieClips inside that are seamlessly next to each other and extend past the stage’s width. On MOUSE_UP, if one of the MovieClips is offscreen, it is repositioned on the other side of the MovieClip that is on screen. It allows the user to continue scrolling forever.

When you create boundaries with a rectangle, I want the width to be infinite. Is there a way to do this? I hope this make sense.

Thanks!!!