Most Efficient Way To "Blink"
Tom Glod
tom at makeshyft.com
Sat Oct 6 16:23:08 EDT 2018
does this code crash it all the time or just one time?
On Sat, Oct 6, 2018 at 4:21 PM Sannyasin Brahmanathaswami via use-livecode <
use-livecode at lists.runrev.com> wrote:
> I just crashed 9.0.1. stable with the first recursion error I had in a
> long time.
>
> I was playing with to "blinking" animation.
>
> using
>
> send "blinkStart true" to me in 500 milliseconds
>
> crashed the IDE.
>
> Now I have this, but color doesn't change.
>
> Anyone have a efficient recipe to "blink" any control?
>
> In this case I changed to backgroundcolor property, but it could be any
> property you want to turn off and on again until user takes action
>
> *command*blinkStart pBool
>
> # sent "true" when card opens;
>
> # send "false" when user clicks it
>
> * if* pBool istrue*then*
>
> * repeat* 10times
>
> * if* pBool is"false"*then* *exit* *repeat*
>
> * set*thebackgroundcolorofgrc"start"to"158,58,77"
>
> * wait*1secondswithmessages
>
> * set*thebackgroundcolorofgrc"start"to"220,220,220"
>
> * end* *repeat*
>
> *end* *if*
>
> * set*thebackgroundcolorofgrc"start"to"220,220,220"
>
> *end*blinkStart
>
>
> # to color does not change.
>
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list