Thin films of CdO and 9 % Mg doped CdO doped have been prepared using spray pyrolysis technique. Transmission and absorption spectra were recorded in order to estimate these films. The deposited thin films were exposed to γ -rays. We have studied the transmission, absorptions and absorption coefficient as a function of photon energy before and after irradiation. The optical constants such as: reflectance, extinction coefficient, refractive index, real and imaginary parts of the dielectric constant and the electrical conductivity were calculated also.