wait with messages
larry at significantplanet.org
larry at significantplanet.org
Thu May 1 11:54:53 EDT 2014
I have a splash screen and want to play 2 sounds in it, but allow the user to leave as soon as he/she wishes.
This was my previous code and it worked fine:
play audioclip "Sound1.wav"
wait 8 seconds
play audioclip "Sound2.wav" looping
the problem with the above code is that the "wait" command meant that the user could not click on the button to go to the main screen until the 8 seconds was up.
and this is my new code:
play audioclip "Sound1.wav"
wait 8 seconds with messages
play audioclip "Sound2.wav" looping
the problem with the new code is this:
IF the user clicks on the button (to go to the main screen) AFTER the 8 seconds, then everything works fine - as it always did
but IF the user clicks on the button DURING the 8 seconds, then everything goes completely CUCKOO!!
So, the only difference in the expected result and the cuckoo result is that I added "with messages"
Therefore, I am assuming that I need to so something with messages if the user clicks during the 8 seconds, but I have no idea what to do.
TIA for any help
Larry
More information about the use-livecode
mailing list