How do I change the icon after sound is ready?

William de Smet williamdesmet at gmail.com
Thu Mar 18 14:05:02 EDT 2021


Hi there,

How do I change the icon back to "play" after the played sound is ready in
my script below?
----
if the iconPath of widget "dummy" is the iconPath of widget "play"
then
set the iconPath of widget "dummy" to the iconPath of widget "pause"
play specialFolderPath("documents") & slash & "recording1.wav"
else
set the iconPath of widget "dummy" to the iconPath of widget "play"
play empty
end if
----

Any suggestions are welcome.


greetings,

William



More information about the use-livecode mailing list