I have this line of code at the top of my code
local endingMusic = audio.loadSound( “endingMusic.mp3”) – Just to load the song mp3
then in the enterScene I have this line
audio.play(endingMusic) – So the song stars to play very nice.
But when I go to another scene
local function buttonHome()
storyboard.gotoScene( “home”, “crossFade”, 1000 )
return true
end
The music keeps playing…
How can I stop the music when I’m going to another scene?
Thanks for your help.
Victor