
24.07.2003, 13:27
|
|
Регистрация: May 2003
Адрес: Moscow
Сообщений: 957
|
Импортируешь в проект звуковой файл
в Linkage обзываешь его "snd"
кнопку стоп обзываешь stopbtn
кнопку старт - playbtn
в первый кадр вставляешь код:
mySound = new Sound;
mySound.attachSound("snd");
playbtn.onRelease = function () {
trace("starting at " add position add " ms");
mysound.start( position/1000 );
}
stopbtn.onRelease = function () {
position=mysound.position;
trace("stop at " add position add " ms");
mySound.stop("snd");
}
и всё )))
|