Flash was introduced in Generation II (Gold/Silver/Crystal). In Pokémon Blue (Gen I), no Pokémon learns Flash by level-up; you must use the HM Flash to illuminate caves.