Hi. I noticed that you are offline right now. I'll be happy to help you with your question.
It sounds like you have had a vitreous detachment in your right eye with an episode of flashing lights.
Flashing lights can be due to traction on the retina from the vitreous jelly (occupies most of the volume of the back of the eye and is connected to the retina).
If have floating dots or spots that are new and that tend to follow your eye movements, floating behind and then catching up to the same position they occupied before then your symptoms sound consistent with what are called vitreous floaters. These floating spots or "bugs" as some people call them, are tiny pieces of the vitreous jelly that occupies a large amount of the volume of the back of the eye. This vitreous jelly, when we're born, is the consistency of a jello jiggler (thick jello). As we age it liquefies and becomes more fibrous bands and water.
Because of this liquefaction and the resultant fibrous bands that are left, there becomes more points of traction that the jelly exerts on the back of the eye where it is attached. As we move our eyes in different directions and as our pupils change shape, or even as we rub our eyes, some of these bands can become unattached from the back of the eye and a piece of it floats around, attached still to the rest of the jelly. It is this traction of the vitreous jelly on the retina that can produce these flashes. These flashes tend to be small, like starbursts and are usually intermittent; they can also appear as an arcing light. This process can happen more frequently in an eye that has had surgery.
One of the most important things to understand about floaters is that the process of a new floater happening can rarely lead to a retinal detachment, so it is important to know the 4 signs of a possible retinal detachment. These are: 1. sudden increase in or new floaters, 2. flashing or arcing lights that are persistent and not going away, 3. a shade/shadow/spot in your vision that you can't see light through, or 4. a large drop in your vision which doesn't improve after a few minutes. For any of these symptoms you must see an ophthalmologist as soon as possible.
Since your floaters and flashes are recent in onset, even though your vision is not affected, I recommend you have a complete dilated examination by an ophthalmologist in the very near future.
It was a pleasure to assist you. Please, allow me get credit for my time and effort in assisting you and press the ACCEPT button for this assist. I will be glad to answer additional questions until you are satisfied. Thank you so much.