onClipEvent(enterFrame){ _X = _X + speed * direction; if(_X >= maxX || _X <= minX) { _X = minX; } }