Тема: as
Показать сообщение отдельно
Старый 16.03.2006, 14:15
psiho вне форума Посмотреть профиль Отправить личное сообщение для psiho Найти все сообщения от psiho
  № 1  
Ответить с цитированием
psiho

Регистрация: Jan 2006
Сообщений: 19
Отправить сообщение для psiho с помощью ICQ
По умолчанию as

Здрасте помогите разобратса с кодом!

stop();
pred_mc = null;
now_mc = null;
for (i=1; i<=5; i++) {
this["but"+i].i = i;
this["but"+i].onRelease = function() {
_root.now_mc = this.i;
if (_root.pred_mc == null) {
_root.pred_mc = this.i;
_root["mc"+this.i].onEnterFrame = function() {
this.gotoAndStop(this._currentframe+1);
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
}
};
} else {
_root["mc"+_root.pred_mc].onEnterFrame = function() {
this.gotoAndStop(this._currentframe-1);
if (this._currentframe == 1) {
_root["mc"+_root.now_mc].onEnterFrame = function() {
this.gotoAndStop(this._currentframe+1);
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
}
};
delete this.onEnterFrame;
}
};
}
};
}

я думаю с исходником все будет понятно!
Вложения
Тип файла: rar 1.rar (122.7 Кб, 38 просмотров)