It is important to flash your brake light when:

Motorcycle brake lights are more difficult to see than the brake lights of larger vehicles, so flashing your brake light may help other drivers to notice it. You should flash you brake light before slowing down where other drivers may not expect you to slow down, such as in the middle of a block or when approaching an alley.
DMV Writen Test