FLEX: UIComponent Click Handler??
Posted
by davidemm
on Stack Overflow
See other posts from Stack Overflow
or by davidemm
Published on 2010-05-27T16:29:24Z
Indexed on
2010/05/27
16:31 UTC
Read the original article
Hit count: 233
Hello,
Thanks for reading.
I'm trying to put a label and an image on a UIComponent, side-by-side. I want to use UIComponent for efficiency reasons, and the entire component is more complicated than just a button with an icon.
I'm trying to get a click handler on ther entire UIComponent so that when a click happens on either the label or the image, the same [click] event handler is called. If I add a click handler on the root component, it works, but when I introduce space between the label and the image, the space between them becomes un-clickable. I produce the space by using the move(x,y) method for the label and the image with a small gap between the x/y coordinates.
Any ideas how to remedy this?
Thanks.
© Stack Overflow or respective owner