Mute button in actionscript 3

This is what I usually do, but it may or may not be the easiest or most sophisticated way of implementing a mute button in actionscript 3. I use Flash CS3 IDE and actionscript 3.0 for the coding, this solution might not work in earlier versions.
To make a mute button, first we need to define [...]

Suspended tween in Flash

for(i:int=0;i<box.length;i++) {
var tween:Tween = new Tween(box[i], “x”, Strong.easeOut, 0, 100, 1, true);
tween.looping = false;
}

should be replaced by

tweens:Array = new Array();
for(i:int=0;i<box.length;i++) {
var tween:Tween = new Tween(box[i], “x”, Strong.easeOut, 0, 100, 1, true);
tween.looping = false;
tweens.push(tween);
}