![]() |
|
||||||||||
|
|||||
|
Регистрация: Jul 2007
Сообщений: 306
|
Здравствуйте!
Делаю FMS mp3 плеер: http://yo002.narod.ru/v1.html Когда скроллится то прыгает скроллер pos_mc.onPress = function(){
clearInterval(time)
pressIt = true;
ns.pause();
this.mask_mc._x = this._xmouse;
this.bar_mc._x = this._xmouse;
pos = this.mask_mc._x*duration/225000;
this.mask_mc._visible = true;
this.onMouseMove = function(){
this.mask_mc._x = this._xmouse;
this.bar_mc._x = this._xmouse;
if (this._xmouse >=225) {
this.mask_mc._x = 225;
this.bar_mc._x = 225;
}
if (this._xmouse <=0) {
this.mask_mc._x = 0;
this.bar_mc._x = 0;
}
pos = this.mask_mc._x*duration/225000;
updateAfterEvent();
}
}
pos_mc.onRelease = pos_mc.onReleaseOutside = function(){
pos = this.mask_mc._x*duration/225000;
time = setInterval(sound_int, 100);
ns.pause(false);
ns.seek(pos);
pressIt = false;
delete(this.onMouseMove);
}
И ещё один вопрос: как сделать прелоадер как в youtube плеере? |
|
|||||
|
Регистрация: Jul 2007
Сообщений: 306
|
А как тогда сделать? play(time)?
(Это mp3 плеер) |
|
|||||
|
прелоадер - например полупрозрачная полоска под бегунком, "load":
А прыгает тогда, когда трек полностью не загружен? Последний раз редактировалось mixery; 20.06.2008 в 13:46. |
|
|||||
|
Регистрация: Jul 2007
Сообщений: 306
|
Прыгает всегда! это с стримом играет.
|
![]() |
![]() |
Часовой пояс GMT +4, время: 18:15. |
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | |
| Опции просмотра | |
|
|