3 Replies Latest reply on Dec 3, 2007 10:43 PM by Greg Dove

    Creating a volume slider

    nikki512
      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.