Larry,

Look at ‘send … in 8 seconds’ .  Also look at playing messages, and also other 
things related to send: ‘cancel’ and ‘pendingMessages’.

I think we can give a short example, if it will help.

Think on what you want the second click to do.  Restart the sounds?  Be ignored 
if during sounds?

Think on your timing.  Do you want to specify start of 1 to start of 2?  Or end 
of 1 to start of 2?

Dar


On May 1, 2014, at 9:54 AM, la...@significantplanet.org wrote:

> 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
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to