Hello,
I am trying to create an app where when they press a certain button that has the name of a sound on it, it plays. Now, what i am trying to accomplish is when they click on it, then it plays which i have down, and I also want so when they click on it while it is playing, it stops playing. What is the code to activate this? My code that i have so far for playing the sound is below.
local button = display.newImage( "Carengine.png" )
function button:tap ( event )
media.playEventSound( "Enginerev.caf" )
end
button:addEventListener("tap", button )
Thank you for any help i get! I will very greatly appreciate it. [import]uid: 19836 topic_id: 8514 reply_id: 308514[/import]