All pastes #563873 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-13 10:36 UTC
rendered paste body
scrubber_mc.onPress = function(){
	if (!snd.loaded) return (0);
	var pos = this._xmouse/100;
	snd.position = Math.min(snd._sound.duration, pos * snd._sound.duration/snd.loaded);
	if (snd.isPlaying) snd._sound.start(snd.position/1000);
}

SetSong = function(node){
	snd.node = node;
	snd.loadSound(node.attributes.src);
	title_txt.text = node.attributes.artist + " - " + node.attributes.title;
}

snd.init();