Player

Technologia Flash, czyli animacja na potrzeby stron WWW to świat daleko odbiegły od zwykłego programowania i kodu. Zapytaj o pomoc i podziel się z nami Twoimi problemami z zakresu Flasha.
kangur91
Posty: 5
Rejestracja: sob lis 29, 2008 11:44 am

Player

Post autor: kangur91 »

witam. Uzywalem tego tutoriala
http://www.thetechlabs.com/video/how-to ... deoplayer/

Mam taki problem: Jak zrobic aby wskaznik(pokazuje obecną pozycje filmiku)
zaczynał od pozycji x=70 (tam przesunąlem pasek playera)?

Widoczniejsze jest to na screenach :

http://img15.imageshack.us/gal.php?g=layer2v.png

Podaje kod:

Kod: Zaznacz cały

function updateDisplay(e:TimerEvent):void {
	// checks, if user is scrubbing. if so, seek in the video
	// if not, just update the position of the scrubber according
	// to the current time
	
	if(bolProgressScrub)
		nsStream.seek(Math.round(mcVideoControls.mcProgressScrubber.x * objInfo.duration/ 270))
	else mcVideoControls.mcProgressScrubber.x = nsStream.time * 270 / objInfo.duration;
	
	
	// set time and duration label
	mcVideoControls.lblTimeDuration.htmlText		= "<font color='#ffffff'>" + formatTime(nsStream.time) + "</font> / " + formatTime(objInfo.duration);
	
	// update the width from the progress bar. the grey one displays
	// the loading progress
	mcVideoControls.mcProgressFill.mcFillRed.width	= mcVideoControls.mcProgressScrubber.x + 5;
	mcVideoControls.mcProgressFill.mcFillGrey.width	= nsStream.bytesLoaded * 270 / nsStream.bytesTotal;
	
	// update volume and the red fill width when user is scrubbing
	if(bolVolumeScrub) {
		setVolume((mcVideoControls.mcVolumeScrubber.x - 318) / 53);
		mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
	}
	
	// chech if user is currently hovering over description label
	
} 
ODPOWIEDZ