The dynamics in the process of deployment of a flexible extendible boom as a deployable structure on the spacecraft is studied. For determining the thermally induced vibrations of the boom subjected to an incident solar heat flux, an axially moving thermal-dynamic beam element based on the absolute nodal coordinate formulation which is able to precisely describe the large displacement, rotation and deformation of flexible body is presented. For the elastic forces formulation of variable-length beam element, the enhanced continuum mechanics approach is adopted, which can eliminate the Poisson locking effect, and take into account the tension-bending-torsion coupling deformations. The main body of the spacecraft, modeled as a rigid body, is described using the natural coordinates method. In the derived nonlinear thermal-dynamic equations of rigid-flexible multibody system, the mass matrix is time-variant, and a pseudo damping matrix which is without actual energy dissipation, and a heat conduction matrix which is relative to the moving speed and the number of beam element are arisen. Numerical results give the dynamic and thermal responses of the nonrotating and spinning spacecraft, respectively, and show that thermal shock has a significant influence on the dynamics of spacecraft.