承继UIComponent编写自定义控件Label不能展示

继承UIComponent编写自定义控件Label不能展示public class Td extends UIComponent{private var _label:IU

继承UIComponent编写自定义控件Label不能展示

public class Td extends UIComponent{private var _label:IUITextField;public function Td(){}override protected function createChildren():void{super.createChildren();if (!_label){_label = IUITextField(createInFontContext(UITextField));_label.text="asdfasdfsd";addChild(DisplayObject(_label));}}}

?

具体原因暂不明白