I know this is an old topic, but for reference, there is another way to do this.
mc.addFrameScript(mc.totalFrames - 1, callbackFunc);
function callbackFunc()
{
mc.stop();
}
This is good if you do not want to enter any code on your timeline. Here is a link for more information about awesomeness that addFrameScript.
source
share