onhover - play sound effect just once

  • Hello!
    I have a question: I have a button and an mp3 file. I want to make the mp3 play
    just once, when I touch the button with cursor. Now, the file plays
    continuously when cursor stays on the button. I need to make it play
    just once, regardless of the fact that the cursor is on the button or not.

    Edited once, last by d&g (October 24, 2010 at 7:17 PM).

  • EDIT: i might have misunderstood this. if you want it to play only once but still be able to be used over and over you needed change is to move your playsound command to onover instead of onhover. onhover is constantly called over and over while the mouse is on top of your hotspot. onover is called jsut once.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!