【发布时间】:2011-05-27 09:26:16
【问题描述】:
我陷入了我没想到的行为,请解释我以理解并解决它。 - 问题如下:我有一个包含标签的类,这个类在 itemRenderer 中使用,整个工作没有异常,但它不显示标签的文本。 我尝试添加按钮,但问题仍然存在 - 它从未真正添加按钮。
为什么?
public class BusTreeNode extends UIComponent
{
protected var label : Label;
public function BusTreeNode()
{
super();
label = new Label();
this.addChild( label );
label.x = 40;
label.y = 2;
label.text = "test";
}
}
... itemRenderer 内部:
<sl:BusTreeNode width="100%" />
【问题讨论】:
标签: apache-flex actionscript-3 itemrenderer