I have a Tree, which has an itemRenderer. On the itemRenderer, driven by the XML conditions, objects are created dynamically and added as a children to nodes.
These new objects shall trigger an event handler ( some click events mostly ).
- How do I pass the event handler to the tree and later to the dynamically created new objects inside
itemRendere?
Something like:
<mx:Tree x="534" y="49" newObjectsOnClick="newObjectsOnClickHandler">
Use event bubbling for events dispatched from item renderers.
So create a custom event as the following:
Then in renderer:
And in class which contains your
Tree: