Setting volume to score

Is it at all possible to set the volume of a sound equal to a score.

Say i have a sound called “beep1”, could i set the colume of that sound to something called “score” using a code like this…

_root.Sound.beep1.setVolume(_root.score) or something?