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
Transparent, clickable graphics
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Transparent, clickable graphics
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
Transparent, clickable graphics
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
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.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.