Scripting Color Overlay

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Scripting Color Overlay

Post by richardmac » Sat Jan 29, 2011 8:19 pm

I have an image button in a stack bound for the iPad. On mouseDown, I'd like to enable Color Overlay and set the opacity to 30. Then on mouseUp, I'd like to turn off Color Overlay. Has anyone done this before, and if so, how do I do it?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Scripting Color Overlay

Post by jmburnod » Sat Jan 29, 2011 8:55 pm

Hi RichardMac,

ColorOverlay is a array
Try this (no tested)

Code: Select all

set the coloroverlay["opacity"] of btn "mybtn" to 0 

Best

Jean-marc
https://alternatic.ch

Post Reply