I want to be a flasher.

Richmond richmondmathewson at gmail.com
Thu May 17 05:15:47 EDT 2012


On 05/16/2012 09:31 PM, Richard Gaskin wrote:
> Richmond wrote:
>> I swear there was a "flash" command in RunRev/Livecode which would flash
>> the screen.
>>
>> However, having looked back at RunRev 2.2.1 I think I am wrong.
>>
>> SO . . . does anybody know how to do this sort of thing:
>>
>> on mouseUp
>>    invert screen colours, and/or flash the screen rapidly
>> end mouseUp
>
> You could show and hide a graphic object which overlays the card, with 
> its ink set to srcXor.
>

Perfect!

I made an img "whiteSquare.png" with GIMP
and imported it into the top layer of my stack, locked it, set it to 
invisible,
and the put this in a "Flash" button:

on mouseUp
     set the vis of img "whiteSquare.png" to true
     wait 5 ticks
     set the vis of img "whiteSquare.png" to false
end mouseUp

Thank you Richard!




More information about the Use-livecode mailing list