disabling buttons while sound file is playing

Robin Banerjee robinb at cogs.susx.ac.uk
Mon Oct 14 05:02:01 EDT 2002


I've been trying to disable a set of buttons while a sound file is playing
(so that any mouse clicks while the sound is playing are ignored).  But the
following doesn't seem to work - the mouseUp action simply takes place after
the sound stops playing):

on openCard
  disable button 8
  play "oct2002/sa1.aif"
  wait until the sound is done
  enable button 8
end openCard


Another query:  how do I specify multiple buttons without using a repeat
control structure? (e.g., button 8 to 12 doesn't seem to do it)

-- 
Dr Robin Banerjee
robinb at cogs.susx.ac.uk




More information about the use-livecode mailing list