[AS] Volume Slider

Hi,

Ok let me break this down to you.

I have seven loops in total. I imported them into the library. i’ve put each of them in a seperate movie clip with the names loop1,loop2,…
. In those movie clips, the first (key)frame contains the action [COLOR=blue]stop();[/COLOR] . The second frame is a keyframe too and from here on the sound starts. And of course they loop.

Okay, now the buttons to control the movie (Prev, Stop, Play, Next) work fine, but let me explain the system i used. I used a var [COLOR=blue]loopnumber[/COLOR] and everytime you click Next or Prev, it '+'es 1 or '-'es 1. I also set a variable [COLOR=blue]number_to_play[/COLOR] = [COLOR=red]"_root.loop"+loopnumber[/COLOR], so you would get [COLOR=blue]_root.loop[/COLOR][COLOR=red]–number–[/COLOR], where --number-- is 1,2,3,4,5,6 or 7. To actually play the sound, i used [COLOR=blue]tellTarget([/COLOR][COLOR=red]number_to_play[/COLOR][COLOR=blue]) {gotoAndPlay(2)}[/COLOR].
That’s why i added stop(); to the first frame of those clips.

Ok, that’s about my system, check it at my site here

Ok, now my real question : how can i make a volume slider for those sounds inside my movie clips ? I’ve checked this forum already for questions like this but they don’t use the system I use. So i quite need specific help …

Thx, Voetsjoeba

Hi,
Do you have a problem with the slider or the control of sound?

The slider, actually, the control works just fine. It aint there yet, i’m still trying to get it to work offline and then put it online but i couldn’t get it to work

I have a slider example here:
http://www.umbc.edu/interactive/fla/streamedsound.swf
http://www.umbc.edu/interactive/fla/streamedsound.fla
made in Flash 5 (Though I dont know what you’re using - [AS] doesnt really say much heh, either way this should still work)

should help you start off

Thx dude, it really helped me out :slight_smile: =)