The pulsating magnetosphere and flux transfer events