gotoAndStop method

void gotoAndStop(
  1. int frame
)

Sets the current frame index to the specified value and stops the movie clip.

Implementation

void gotoAndStop(int frame) {
  gotoFrame(frame);
  stop();
}