Javascript Qooxdoo声音按钮开/关不工作

Javascript Qooxdoo声音按钮开/关不工作,javascript,createjs,qooxdoo,soundjs,Javascript,Createjs,Qooxdoo,Soundjs,我在代码中捕捉按钮:this.buttons.Sound.addListener(“按下”,this.\u Sound,this) 和写函数,但我按下按钮时声音关闭/打开,它们不工作 __sound: function(){ if (this.buttons.Sound.isEnabled()){ createjs.Sound.volume = 1; } else { createjs.Sound.volume = 0; } }, 在这一切工作之后 __so

我在代码中捕捉按钮:
this.buttons.Sound.addListener(“按下”,this.\u Sound,this)

和写函数,但我按下按钮时声音关闭/打开,它们不工作

__sound: function(){
  if (this.buttons.Sound.isEnabled()){
     createjs.Sound.volume = 1;
   } else {
     createjs.Sound.volume = 0;
   }
},
在这一切工作之后

__sound: function(){

if (this.buttons.Sound.isEnabled()){
createjs.Sound.setVolume(1);
} else {
createjs.Sound.setVolume(0);
}
},
在这一切工作之后

__sound: function(){

if (this.buttons.Sound.isEnabled()){
createjs.Sound.setVolume(1);
} else {
createjs.Sound.setVolume(0);
}
},

您使用的SoundJS版本是什么?getter/setter属性是在0.6.1中添加的,而在以前的版本中您必须使用
setVolume
方法。我使用的是0.6.1版本。您使用的是哪个版本的SoundJS?getter/setter属性是在0.6.1中添加的,而在以前的版本中必须使用
setVolume
方法。