Fluxoid motion and resistive transition in high Tc superconductors