Mute Unmute Button

Hey Friends i am going to set background music for my home screen so i want set ‘Mute & Unmute’ on only one button so how can i do this ? and also when another screen open music should stop & when user again come on home screen music should start ? any suggestions ?

If IsPlaying
Then Pause
Else Start

Before switching to another screen Pause the music

This depends on how you are switching your screens. If you use this method App Inventor Tutorials and Examples: Manager Screen | Pura Vida Apps just use the Start method in event OtherScreenClosed… you have to test this using the apk file…

Taifun