Flashing hazard lights may be used:

Flashing hazard lights must only be used if your vehicle is disabled or legally stopped on the highway or shoulder. They may also be used when driving in a funeral procession.
DMV Writen Test