if (_framesloaded == _totalframes) { gotoAndPlay("main"); } else { gotoAndPlay("loading"); }