In this article, we shall obtain the boundary state associated with a moving D p-brane in the presence of the Kalb-Ramond field B μν , an internal U(1) gauge field A α and a tachyon field, in the compact spacetime. According to this state, properties of the brane and a closed string, with mixed boundary conditions emitted from it, will be obtained. Using this boundary state, we calculate the interaction amplitude of two moving D p 1 and D p 2 -branes with above background fields in a partially compact spacetime. They are parallel or perpendicular to each other. Properties of the interaction amplitude will be analyzed, and contribution of the massless states to the interaction will be extracted.