what causes flashes of light in the eye when you look to the side
The vitreous sometimes pulls on the retina. This may cause you to see flashing lights or lightning streaks, even though there aren't any such lights present. This is the same thing that occurs when you get hit in the eye and see stars or when you rub your eye.