Hi,
i’m new to corona, so i’m sorry for this question, because i cant figure it out.
I have a Button in the app that plays a looped sound and with another tap on the button the sound should stop.
Here’s the Code
[lua]local button = display.newImage( “birds_button3.png” )
button.x = display.contentWidth / 2
button.y = display.contentHeight /2
function button:tap( event )
media.playSound( “byriver.mp3” )
end
button:addEventListener( “tap”, button )
[lua]Has anyone an idea ?
Thanks
[import]uid: 37574 topic_id: 7505 reply_id: 307505[/import]