My World 3 for Windows
TMSound Files
Any frame can be set to play a .wav format sound file when clicked on.
A suitable .mwb script file (PlaySound.mwb) is included in the Mwb files directory.
The script reads:
DEFPROCOnClick
REM Store your sound in the Shared directory of the My World file
REM Access this via the View->Resources menu
REM Sound must be a wav file. Edit the name of the file as necessary
Sound(PATHBOOKSHARED$+"sound.wav",1,ASYNC%)
REM FrameChangeOwner("This")
ENDPROC
NB the file also includes a procedure OnDrop. This allows other resources to be placed on top of the frame.
Note also that the .wav file must be stored in the My World file's Shared directory, accessed via the Resources option of the View menu.