This content has been marked as final. Show 4 replies
each of your sounds will need a linkage id. if those ids are sound1, sound2, ..., sound10, then you could use:
Thanks so much! It works great, except for one thing: I have a background music playing on the main page, that I'd like to continue even when clicking on the button that changes sounds. Now as it is, the background music stops playing when I click the button the first time. The second time I click it, it plays a sound (sound1). Any ideas for this?
Actually, I got it to work - I just removed the line
and I changed
so here's the code as it is now:
the only problem might occur when someone click your button rapidly. then you'll probably have a cacophony.