Creating Audio 'Tooltips' |
|
Here is a draft for managing sound tooltips (place it in the card script):
Posted 4/6/2005 by Eric Chatonet to the Use-Revolution listlocal lAllowSoundTooltip on mouseEnter put true into lAllowSoundTooltip send "SayIt" to the target in the tooltipdelay millisecs end mouseEnter on mouseDown StopSayIt end mouseDown on mouseLeave StopSayIt end mouseLeave on mouseRelease StopSayIt end mouseRelease on SayIt local tS ----- if not lAllowSoundTooltip then exit SayIt put the mouseLoc into tLoc wait 100 milliseconds with messages if the mouseLoc = tLoc then switch case "field" is in the target put target into tS break default put the short name of the target into tS end switch put false into lAllowSoundTooltip revSpeak tS end if end SayIt on StopSayIt revStopSpeech put false into lAllowSoundTooltip end StopSayIt