Actually, with flashing LED's they need filtered DC to do their thing. A simple way to get consist ant flashing with variable power input is to use diode, capacitor filter, and a 3-terminal regulator. If you use an LM7805, you can then simple use a dropping resistor in the 150-500 range to adjust the light output and flash rate of most flashing LEDs.