onEnterFrame = function(){ if(mc1._currentframe == mc1._totalframes){ trace("first ended"); delete this.onEnterFrame; } }