This happened to me also last year. It's called a Posterior Vitral Detachment. The doctor told me it's quite common in people aged 60+, especially if you are nearsighted. He said the flashing lights and floaters would go away after a few months, but I still have them.

Posterior Vitral Detachment