Como Rebobinar MC específico?
Como Rebobinar um MC específico?
Adptei esse código mas ele rebobina todos os MCs no palco
//declarando a função prototype
MovieClip.prototype.rebobinar = function() {
//fazendo o loop onEnterFrame
this.onEnterFrame = function() {
//retornar ao frame anterior
this.prevFrame();
//verificar se chegou ao primeiro frame
if (this._currentframe == 1) {
//acabar o loop
delete this.onEnterFrame;
}
};Discussão (6)
Carregando comentários...