Flex Custom UIComponents
Posted
by user164142
on Stack Overflow
See other posts from Stack Overflow
or by user164142
Published on 2009-08-27T11:35:37Z
Indexed on
2010/05/12
11:04 UTC
Read the original article
Hit count: 241
I have created a graph component in AS3 which extends UIComponent. I created an mxml component which is just a Label. The idea is to use the label component to show the values on the graph when you hover over points.
I have tried two approaches.
Create the Label component using ClassFactory inside the graph so it gets created in the graph component and addChild is called there. The problem is it is always 0 in size.
Create in main mxml file and pass in to graph using a setter, the sizing is perfect but the x an y dont relate to my graph :(
I suppose its similar to flex and itemrenderers, but in my case i have a graph and another component which can be changed, at the moment it is just a Label.
Thanks
Neil
© Stack Overflow or respective owner