Develop games in your browser. Powerful, performant & highly capable.
1. Use a global variable for sound on/off instead of what I guess is an instance variable you're using on the button
2. There is a system condition 'on end of layout', you could use that with the Stop audio action on the layout 1 event sheet
Also if this is for help with events in Construct 2 then you posted it in the wrong place.