can i access every item renderer of tree in as3 ?( note that i am using custom item renderer) lets say i want to add some button in canvas(children of custom itemRender)..
like
getItemRender().addChild();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not easily, but it is possible.
itemRenderers are stored internally in an array. USually that array is a protected variables. Take a look at listItems and freeItemRenderers and highlightItemRenderer.
They are all protected, so you’ll have to extend the Tree class and expose them to access them.
If possible, I would strongly recommend putting values in your dataProvider and updating the itemRenderer based on that data; not trying to access itemRenderers directly.