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

Регистрация: Jul 2003
Адрес: Istanbul
Сообщений: 252
в руте
Код:
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
maxvolume = 100;
minvolume = 0;
onEnterFrame = function () {
	if (_root.soundstatus == "on") {
		step = 5;
	}
	if (_root.soundstatus == "off") {
		step = -5;
	}
	maxvolume = maxvolume+step;
	if (maxvolume>100) {
		maxvolume = 100;
	}
	if (maxvolume<0) {
		maxvolume = 0;
	}
	_root.mySound.setVolume(maxvolume);
};
и на кнопки ставиш код
Код:
on (release) {
	_root.soundstatus = "off";
}
// -----------------------*--------------------\\

on (release) {
	_root.soundstatus = "on";
}
__________________
:: tired to live ::