Показать сообщение отдельно
Старый 23.10.2009, 18:34
desadent вне форума Посмотреть профиль Отправить личное сообщение для desadent Найти все сообщения от desadent
  № 4  
Ответить с цитированием
desadent

Регистрация: Oct 2009
Сообщений: 12
tut ponadobitsja class SoundShortcuts


Код AS1/AS2:
import caurina.transitions.Tweener;
import caurina.transitions.properties.SoundShortcuts;
SoundShortcuts.init();
 
//sozdaem zvuk
this.init = function():Void {
	this.loopSound = new Sound(this);
	this.loopSound.attachSound("soundTrack"); // "soundTrack" - identifier zduka iz library
	this.loopSound.start();
	this.loopSound.onSoundComplete = function() {this.start()};
	this.loopSound.setVolume (0);
};
 
//plavno podnimaem gromkost'
btn.onRollOver = function(){
	Tweener.addTween(_root.loopSound, {_sound_volume:100, time:4, transition:"easeinoutquad"});
}
 
// i plavno ee opuskaem
btn.onRollOut = function(){
	Tweener.addTween(_root.loopSound, {_sound_volume:0, time:2, transition:"easeinoutquad"});
}
this.init();// zakuskaem funkciju sozdanija zvuka
Vot.. sovsem neslozno

nepolenilsja daze sdelat' example tjamen otsjuda > LINK