First of all be sure your exam was done by the "eye doctor" with the greatest skill and training and that would be an Eye MD ophthalmologist. If you did not see one schedule a medical eye exam with one. If you did see an Eye MD then the flashes could be optical reflexes if you wear glasses, contacts or need glasses or contacts and don't wear them. Another common cause is awareness of entoptic or entopic phenomena which has been discussed at length many times her. Start by reading the section on entoptic phenonena at Wikipedia.