Code: Select all
on waitForAudio
repeat with t=0 to 200
wait 0.05 second with messages
if the sound = "done" then exit repeat
end repeat
end waitForAudio
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on waitForAudio
repeat with t=0 to 200
wait 0.05 second with messages
if the sound = "done" then exit repeat
end repeat
end waitForAudio
Is this for mobile?punchcard wrote:...while being very responsive to touch commands?
Code: Select all
local tSound
on soundFinishedOnChannel pChannel, pSound
put false into tSound
end soundFinishedOnChannel
if tSound = true then
---do your image swapping
end if