If I offSoundSwitch off and then I go to the Screen2, after that if I come back from Screen2 to Current Screen, then the sound starts automatically while the Current Screen is showing offSoundSwitch off. So how can I pause/stop the sound when I come back from Screen2 to Current Screen and Current Screen is showing offSoundSwitch off?
I am unable to give you explanation because I am also confused.
When I click on Back button or click on Screen.BackPressed, then it returns to Screen3 but if on Screen3 OffSoundSwitch is off, then also it runs the sound. I want that if on Screen3 OffSoundSwitch is off then it does not run the sound and also if on Screen3 OnSoundSwitch is on then it runs the sound.
So please help me in doing this.
unfortunately without seeing your updated blocks we do not know, what you might have learned from my example...
your blocks in the OtherSreenClosed event do not make any sense...
you might want to elaborate, what exctly you are trying to do after coming back from another screen
Yes, sure. I have used two switches because I have to change the image on the Main Screen not on Screen2. So, I am unable to use switches on Screen2. Please tell me that there is any way in which I can change the image in a switch (Another image when switch is on and another image when switch is off).
Edit in the question: If I used two switches (OnSoundSwitch and OffSoundSwitch) on the Screen1. If OnSoundSwitch is on, then I will hear the sound and OffSoundSwitch is off, then I will not hear the sound. I used two switches because I want to display image1 when OnSoundSwitch is on and display image2 when OffSoundSwitch is off. If OffSoundSwitch is off (means that OnSoundSwitch is also off) and I am on Screen2 and then return to Screen1, then I hear the sound on Screen1 when the OffSoundSwitch is off but when I on the switch, then off the switch, then I will not hear the sound. But I want that I will not hear the sound if I switch to Screen1 from Screen2 and also OffSoundSwitch is off . So please anyone help me in solving this problem.
Please Help !!