The onVolBtnRelease function pauses and resumes the audio playback already:
[blockcode]
local function onVolBtnRelease()
if storyboard.isPlaying == true then
audio.pause()
storyboard.isPlaying = false
volBtn.default=“sound-off.png”
volBtn.over=“sound-on.png”
else
audio.resume()
storyboard.isPlaying = true
volBtn.default=“sound-on.png”
volBtn.over=“sound-off.png”
end
return true – indicates successful touch
end
[/blockcode]
The sound will stop and resume correctly, but the images won’t be changed. How can I solve this? Any idea? [import]uid: 106038 topic_id: 26180 reply_id: 326180[/import]
This works, thank you! I hoped not to have to create a new button, but if this is the only solution, I’ll take it [import]uid: 106038 topic_id: 26180 reply_id: 106102[/import]