Volume control (using setVolume)

I have this script placed at the root level:

backgroundAudio=new Sound();

and this script placed on a volume up button:

on (release) {

It works, but there’s one problem, when the volume up button is released and the volume increases by one unit, it does so from the beginning, resetting the backgroundAudioVolume to 0 and then increasing. How can I avoid this?