When you say flashing, how often and for how long each flash? A low duty cycle flash, for instance 100ms flash every 2 seconds, will use very little battery power. A standard solar light modified to flash instead of light steadily would easily last all night and more.