A study of the magnetic and velocity fields in an active region