Fade effect for a Field

Devin Asay devin_asay at byu.edu
Fri May 16 11:44:13 EDT 2014


On May 16, 2014, at 6:49 AM, Pascal Lehner <tate83 at gmail.com>
 wrote:

> Hi all,
> Thanks for the quick answers. I will give them a try.
> I just found another solution that seems even smaller but less configurable.
> 
> hide field id 1012 with dissolve
> 
> show field id 1012 with dissolve
> 
> Here:
> https://sites.google.com/a/pgcps.org/livecode/home/disappearing-objects
> 
> Now I just need to set it up in a way that it doesn't stop the rest of the
> work that is being done in the background

Pascal,

I have done this a lot, this works well:

command fadeInMsg pText
   lock screen for visual effect
   put pText into fld "mymessage"
   show fld "mymessage"
   unlock screen with visual effect dissolve very fast
end fadeInMsg

command fadeOutMsg
   lock screen for visual effect
   hide fld "mymessage"
   unlock screen with visual effect dissolve very fast
end fadeOutMsg

Then call it like this:

   fadeInMsg "Useful information here."
   send "fadeOutMsg" to me in 1000 milliseconds

Easy, neat, and non-blocking.

HTH

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com







More information about the use-livecode mailing list