I dont have the exact code any more, but I have done his before.

You just need some simple math. When you release the slider get the slider position and move the song to that point (How ever many seconds into the song).

I know that doesn't sound very helpfull..but it realy is just simple math.