Stop AS movement?

i have a simple MC moving from right to left using AS, but it keeps moving off the frame. How do i stop it where i want it to stop?
Thanks
J