oh so you were looking for the code..
VB Code:
  1. If (shpball.left < x2) and (shpball.left > x1) then
  2. End If