Hi, is ther a way i can show something on my stack just for a determinate time for example "show for 2 seconds"?
I tried with wait, but it causes some problems in the speed and sometimes even freezes the stack.
Thanks!
show for a determinate time
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: show for a determinate time
Write a handler that does the hiding, let’s say in card or stack script:
On showing whatever needs to be hidden just call the hide handler at whatever time interval you want. E.g.
Hope that helps…
Stam
Code: Select all
On hideStuff
# do hiding stuff
End hideStuff
Code: Select all
On ShowStuff
## show status message or whatever
## after showing stuff, call the above handler:
dispatch “hideStuff” to this card in 2 seconds // or whatever interval
// assuming it’s in card script
End ShowStuff
Stam
Re: show for a determinate time
this script gives me an error:
Code: Select all
on hideStuff
hide btn "ToBe"
end hideStuff
On ShowStuff
show btn "ToBe"
dispatch "hideStuff" to this card in 2 seconds
End ShowStuff
Samuele.
Re: show for a determinate time
sorry - change 'dispatch' to 'send'
example attached
example attached
- Attachments
-
- showHIde.livecode.zip
- (816 Bytes) Downloaded 119 times