all groups > flash (macromedia) > december 2007 >
You're in the

flash (macromedia)

group:

Creating a volume slider



Creating a volume slider Nicole
12/2/2007 9:34:03 PM
flash (macromedia): I am trying to create a volume slider in Flash CS3. I have a directions for a vertical slider, which I'm trying to adapt to make a horizontal slider. The button is sliding, and audio is playing, but the slider is not controlling the audio.

This is my AS for the slider:

onClipEvent (load) {
top = _y;
bottom = _y;
left = _x;
right = left+100;
}
onClipEvent (enterFrame) {
if (dragging == true) {
_root.soundObject.setVolume(100-(_x-left));
}
}

This is the last part of a big project, and I have been staring at it for so long, I don't know what I'm looking at anymore. I really need a fresh pair of eyes. If I could send someone my FLA file, and they could check it out, that would help a lot.


From http://www.developmentnow.com/g/68_0_0_0_0_0/macromedia-flash.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button