For limited movement, between point 20 and point 200, code is:

onClipEvent (enterFrame) {
if(Key.isDown(Key.RIGHT)) {
_x = Math.min (200, _x + 10);
}
if(Key.isDown(Key.LEFT)) {
_x = Math.max (20, _x - 10);
}
}