Help related to on/off

How can I use the sound component for example twice what i mean is that for example I am making a flashlight app and I need to ask the sound component to listen for sound to turn it on and off. Can someone please help?

1 Like