if button1.Caption = '播放' then begin animate1.play(1, 31, 5); button1.Caption := '停止'; end else begin animate1.Stop; button1.Caption := '播放'; end;