var num_frames:Number = mc._currentframe - ваше число if(num_frames!= критическое значение){ mc.gotoAndStop(num_frames) }