Hi Klaus: Like all graphic effects, colorOverlay is an array that is based on multiple properties (color, opacity, and blendMode). You cannot apply a graphic effect via script by applying only one of its properties, you must set all of them at once in an array. To adjust one of the effect's properties, you can do as Bernd suggested, or you can do this: set the colorOverlay["opacity"] of button 1 to 0.
Hope this helps. Regards, Scott Rossi Creative Director Tactile Media, UX Design On Sep 23, 2013, at 9:42 AM, Klaus major-k <[email protected]> wrote: > Hi Mark, > > Am 23.09.2013 um 18:35 schrieb Mark Wieder <[email protected]>: > >> Klaus- >> Monday, September 23, 2013, 7:57:07 AM, you wrote: >> >>> Hi Bernd, >> >>> Am 23.09.2013 um 16:30 schrieb BNig <[email protected]>: >> >>>> Hi Klaus, >>>> >>>> on mouseUp >>>> put the colorOverlay of btn 1 into tArray >>>> put 0 into tArray["opacity"] >>>> set the colorOverlay of btn 1 to tArray >>>> end mouseUp >> >>> ??? >>> If COLOR has been set before, then COLOR will be set again? >> >> You can't set the colorOverlay["color"] to empty because "empty" isn't >> a color. The default color for a new button is "0,0,0" (white). So if >> you want to keep the original color of the button, use Bernd's >> solution of setting the button's opacity (the default for a new button >> is 0). If you don't care about saving the original color then you can >> set the button's color to "0,0,0" and that will return it to its >> virgin white state. > > AHA! :-D > > Thank you, looks like I was completely wrong until now! 8-) > >> -- >> -Mark Wieder >> [email protected] > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > [email protected] > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
