Hey guys. Well i got some sounds to start up when you click on them, but now i need a line of code that will help me make the sound stop when you click on it for a second time. Here is the code:
local button = display.newImage( "Dirt Bike Idle.png" )
function button:tap ( event )
media.playEventSound( "Dirt Bike Idle.caf" )
end
button:addEventListener("tap", button )
button.x = 50
button.y = 120
localGroup:insert(button)
Does anyone have a line of code they can tell me to use and where to put it in the above code? Any help will be greatly appreciated! [import]uid: 19836 topic_id: 8716 reply_id: 308716[/import]