We consider a massless scalar field in a two-dimensional space-time inside an oscillating cavity with mixed boundary conditions. In order to discuss particle creation phenomenon, we consider the situation of parametric resonance in which the oscillating frequency is twice the frequency of the first mode of the static cavity. Following the procedure developed by Dodonov and Klimov, we compute the number of created particles, the generation rate, and the energy in the cavity. We compare our results with those found in the literature for the Dirichlet-Dirichlet case.