The answer is:
the change observable in the flash spectrum occurs because, as the moon moves out of the inner part of the chromosphere, the temperature of the chromosphere increases as the distance between the moon and the photosphere decreases; the direct opposite happens to the chromosphere density, which also decreases.
All of this causing observable changes in the light of the spectrum.