simple loop: simple limit to _x property motion

onClipEvent (enterFrame) {
_x = _x + 10;
// if the instance goes off stage right,
// then move it to the left side of stage

if(_x > 300){
_x = 0;
}
}