void gotoAndPlay(int frame)

Source

void gotoAndPlay(int frame) {
  _currentFrame = min(max(frame, 0), totalFrames - 1);
  this.play();
}