To make these three properties occur takes something called stimulated emission. This does not occur in your ordinary flashlight -- in a flashlight, all of the atoms release their photons randomly. In stimulated emission, photon emission is organized.
The photon that any atom releases has a certain wavelength that is dependent on the energy difference between the excited state and the ground state. If this photon (possessing a certain energy and phase) should encounter another atom that has an electron in the same excited state, stimulated emission can occur. The first photon can stimulate or induce atomic emission such that the subsequent emitted photon (from the second atom) vibrates with the same frequency and direction as the incoming photon.
The other key to a laser is a pair of mirrors, one at each end of the lasing medium. Photons, with a very specific wavelength and phase, reflect off the mirrors to travel back and forth through the lasing medium. In the process, they stimulate other electrons to make the downward energy jump and can cause the emission of more photons of the same wavelength and phase. A cascade effect occurs, and soon we have propagated many, many photons of the same wavelength and phase. The mirror at one end of the laser is "half-silvered," meaning it reflects some light and lets some light through. The light that makes it through is the laser light.
You can see all of these components in the figures on the following page, which illustrate how a simple ruby laser works.
More Options: