What causes seeing flashes when shutting eyes?

Vitreous detachment. Vitreous detachment, or separation, is the most common cause of new onset flashes. If you have new onset flashes, even if you only notice them when you close your eyes, you should have a thorough eye exam to assess for retinal tears or detachment.