Page 1 of 1

Scripting Color Overlay

Posted: Sat Jan 29, 2011 8:19 pm
by richardmac
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?

Re: Scripting Color Overlay

Posted: Sat Jan 29, 2011 8:55 pm
by jmburnod
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