Показать сообщение отдельно
Старый 26.08.2005, 13:42
Futs вне форума Посмотреть профиль Отправить личное сообщение для Futs Найти все сообщения от Futs
  № 4  
Ответить с цитированием
Futs
 
Аватар для Futs

Регистрация: Jun 2004
Адрес: Москва
Сообщений: 475
При условии, что не видно того, что у тебя там происходит, я бы сделал так
this.b1_mc.onPress=this.b2_mc.onPress=function (name_) {
name_=this._name
pusk(name_);
}
pusk = function(name_) {
if (name_ == b1_mc) {
_root.play();
currentStage++;
} else if (name_ == b2_mc) {
if (currentStage>0) {
currentStage--;
}else {
currentStage = labelNum.length-1;
_root.gotoAndStop(_root._totalframes-1);
}
playBackward(labelNum[currentStage]);
}
};
function playBackward(stopFrame) {
_root.onEnterFrame = function() {
if (_root._currentframe != stopFrame) {
_root.prevFrame();
}else{
_root.gotoAndStop(stopFrame);
_root.onEnterFrame = null;
}
}
}