Hallo!
I make a volume control with this action
onClipEvent (load) {
_root.vbase._height = 65;
_root.vbase._x = 37;
this._y = _root.vbase._y+_root.vbase._height/2-this._height/2;
left = this._x;
top = this._y+_root.vbase._height/2;
right = this._x;
bottom = this._y-_root.vbase._height/2;
//
volCalc = _y+_root.vbase._height/2;
}
// End of onClipEvent load
//
onClipEvent (enterFrame) {
// -----------------------------------------
volCalc2 = (_y-volCalc)*(-100/(_root.vbase._height));
_root.globalSound.setVolume(volCalc2);
_root.currentVolumeText = "Volume: "+_root.globalSound.getVolume();
// ------------------------------------------
this.onPress = function() {
startDrag(this, false, left, top, right, bottom);
}
this.onRelease = function() {
this.stopDrag();
}
} // End of onClipEvent enterFrame
My question is :
how to do that when stopdrag to play a sound