var off:Boolean = true; btn.onPress = function () { off = !off; if(off) ur_snd.stop(); else ur.snd.start(); }