gotoFrame method

void gotoFrame(
  1. int frame
)

Advances the movie clip to the specified frame.

frame is the index of the frame to advance to.

Implementation

void gotoFrame(int frame) {
  if (_frameTextures == null) {
    return;
  }
  currentFrame = frame;
  currentFrame %= frameCount;
  texture = _frameTextures![currentFrame];
}