Greetings all and excuse my thickness on this topic. Could anyone advise what i'm missing on this one?
The tiny little program below, as you can see, should create a button that when clicked should play a sound. It doesn't.
Considering this is my first foray into the world of using BLUE i'm sure the answer is something very obvious but... well i'm too silly to be able to spot what i'm missing.
All advice welcome and gratefully recieved.
gosub _initialise_program
REM ******* MAIN LOOP *******
repeat
gosub _respond_to_BLUE_commands
sync
until nevertrue$ = "true"
REM ******* SUBROUTINES *******
_respond_to_BLUE_commands:
getEvent
if eventSource()=myButton and eventType()=MOUSE_CLICK : play sound 1 : endif
return
_initialise_program:
Sync On
StartBlue "_____", "_____"
myButton = createButton(90, 20, 75, 20, "Click me baby!", 0, 0)
load sound "G:\sound samples\Wav\GameSounds\pop.wav", 1
return