Music Problem

Hey guys, in my settings, I have a Music Off button. I made a boolean attribute and have this in that button. Rule- Game.Music is true - Rule- Touch is Pressed, change attribute Game.Music to false, pause music, change image to Music On. Under that, I have another rule and it has everything above except Rule- Game.Music is false - Rule- Touch is Pressed, change attribute Game.Music to true, play music, change image to Music Off. When the music is playing and I click Music Off button, it turns it off and changes the image to Music On but when I press Music On, nothing happens.
Comments
Have a attribute called musicOff and have it set to 0
In your music off button have a rule when touch is pressed:
- change attribute musicOff to (musicOff+1)%2
Then another Rule when attribute musicOff=1:
-change attribute device music volume to 0
-change image to music off image
OTHERWISE
-change attribute device music volume to 1
-change image to music on image
cheers
When touched:
change music volume to 1-music volume
change self.image to 1-self.image
The all you have to do is name your two button images 1 and 0.