how to access all item renderer of MX: Tree in?

余生长醉 提交于 2020-01-06 07:24:45

问题


my renderer contains a canvas in it, i add some title-window, every time i see my tree previously added Title-Windows are visible, i want to access each n every item in tree and remove previosly added all windows from the rendere. so can any tell me how access all the item renderer in AS3 ?


回答1:


if tree having id for example "id_tree" is using XML dataprovidor then by useing the

for each(var tmp:xml in rootTag.descendants())
{
id_tree.itemToItemRenderer(tmp);
}


来源:https://stackoverflow.com/questions/3287335/how-to-access-all-item-renderer-of-mx-tree-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!