PDA

View Full Version : [AS] Volume Slider



Voetsjoeba
April 13th, 2003, 08:27 AM
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 stop(); . 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 loopnumber and everytime you click Next or Prev, it '+'es 1 or '-'es 1. I also set a variable number_to_play = "_root.loop"+loopnumber, so you would get _root.loop--number--, where --number-- is 1,2,3,4,5,6 or 7. To actually play the sound, i used tellTarget(number_to_play) {gotoAndPlay(2)}.
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 (http://users.pandora.be/voetsjoeba)

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

pom
April 13th, 2003, 08:33 AM
Hi,
Do you have a problem with the slider or the control of sound?

Voetsjoeba
April 13th, 2003, 08:35 AM
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

senocular
April 13th, 2003, 09:12 AM
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

Voetsjoeba
April 13th, 2003, 01:06 PM
Thx dude, it really helped me out :) =)