Page 1 of 1

Transparent, clickable graphics

Posted: Thu Feb 19, 2009 9:53 pm
by AlexAdams
I need to create graphics (polygons, rectangles, ovals, etc) that are transparent, but can register mouse events anywhere in their area (the area that would be filled, if there was a fill).

My experience is that when the opaque property is set to true the graphic is selectable this way, but it has a fill color and when the opaque property is set to false, the graphic is only selectable on its lines.

How do I get around that?

What am I missing? It seems like a simple feature to expect, but I don't see it.

Currently I am using this to provide clickable hot spots over large images, but will want to use it on cards with only graphics as well.

Thanks in advance,

Alex

Posted: Thu Feb 19, 2009 10:37 pm
by AlexAdams
I got it. blendLevel

Transparent, clickable graphics

Posted: Thu Feb 19, 2009 10:51 pm
by mroam
Hmm... I've just tried opaque graphics and buttons with high blendlevel (99/100, use inspector) and they are clickable within their interior, while looking very see-through. Only problem is that their border is transparent also: I guess you could group them with a non-opaque polygon that provides the look of the outline.

Re: Transparent, clickable graphics

Posted: Sat Mar 14, 2009 6:00 pm
by edljr
mroam wrote:Hmm... I've just tried opaque graphics and buttons with high blendlevel (99/100, use inspector) and they are clickable within their interior, while looking very see-through. Only problem is that their border is transparent also: I guess you could group them with a non-opaque polygon that provides the look of the outline.
I drag an "image area" object from the toolbar onto my card. In the properties, you can deselect "show border." This gives you a clear (completely invisible) img that can capture mouseDown, mouseUp, mouseEnter, mouseLeave, etc.