i am trying to create a scrolling movie clip with left and right mouse movement. but i cant set the boundary for the movie clip to stop when it reach the end point. i need to stop the movie clip when it reach the last frame and start from the first when i move the mouse to right side.

attaching the example file which i downloaded from a tutorial site.
thanks in advance.