Dissipative flux motion in epitaxial YBa2Cu3O7−δ and Bi2Sr2CaCu2O8+x films