如何访问MX的所有项目渲染器:树? [英] how to access all item renderer of MX: Tree in?

查看:209
本文介绍了如何访问MX的所有项目渲染器:树?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的渲染器包含在它的画布,我添加一些标题的窗口,每次我看到我的树previously添加标题,Windows是可见的,我要访问树上每个n每一个项目,并删除previosly添加了所有的窗口从rendere。 因此可以在任何告诉我如何获得所有项目渲染器在AS3?

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 ?

推荐答案

如果树上有ID,例如 id_tree 正在使用的 XML dataprovidor然后期运用了

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);
}

这篇关于如何访问MX的所有项目渲染器:树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆