gotoAndPlay method

void gotoAndPlay(
  1. double time
)

Seeks to time (clamped to [0, Animation.endTime]) and starts playing.

Equivalent to seek(time); play();.

Implementation

void gotoAndPlay(double time) {
  seek(time);
  playing = true;
}