Spin-flip Transictions in a Magnetic Trap