Тема: NetStream seek
Показать сообщение отдельно
Старый 20.06.2008, 10:26
telit вне форума Посмотреть профиль Отправить личное сообщение для telit Найти все сообщения от telit
  № 1  
Ответить с цитированием
telit
 
Аватар для telit

Регистрация: Jul 2007
Сообщений: 306
По умолчанию NetStream seek

Здравствуйте!
Делаю 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);
	}
v1.zip
И ещё один вопрос: как сделать прелоадер как в youtube плеере?