Im trying to make a volume bar that shows the volume percentage in a dynamic text box (with an instance of ‘percOutput’) while you are dragging. I cant even see how to do this, im having real trouble. :cantlook:
Here is my Actionscript:
myMusic = new Sound(this);
myMusic.attachSound("mySound");
//myMusic.start(0, 99); //auto start (remove commenting to activate)
slider.control._y = -50;
slider.control.onEnterFrame = function() {
myMusic.setVolume(0-this._y);
}
slider.control.onPress = function() {
startDrag(this, false, this._x, -100, this._x, 0);
}
slider.control.onRelease = function() {
stopDrag();
}
stopButton.onRelease = function() {
myMusic.stop();
}
playButton.onRelease = function() {
myMusic.start(0, 99);
}