A sensation of flashing lights can be caused when the vitreous (the clear, jelly-like substance that fills the middle of the eye) shrinks and tugs on the retina. These flashes of light can appear off and on for several weeks or months. With age, it is more common to experience flashes.