The features of spontaneous and stimulated emission of polyfluorenes, polyvinylcarbazole, and low-molecular-weight electron-donor compounds incorporated into various materials are studied in the presence of nitrotoluene vapour. Lasing in planar thin-film waveguides is achieved. The dynamics of the lasing spectra of a thin-film optical chemical sensor is presented. It is shown that the response time of the sensor in the lasing regime is 30 s before the lasing intensity decreases by 50% from the initial level.