Peepz,
I have a sound slider wich is 161px width, i have a mp3 that have a duration of: 160732 (wich is variable if it’s still streaming (var name = “myDur”)
if i click on the bar, the music needs to play to a position wich is relative to the position i clicked on the bar. (is the duration a good integer, because is see a lot of people dividing it by 1000 ?)
does somebody knows a formule for this?
i think i need something like this:
this.onRelease = function()
{
musicGoto = /*some var with a formule*/ *(this._xmouse/100)
myTrack.start(musicGoto, 1);
}
thnx already!