atomic absorption spectroscopy
The animation below illustrates the principles of atomic emission, this is what happens during the flame tests that you conducted in the lab.
The principles of AAS
This animation summarises emission and absorption spectroscopy