我正在使用 actionscript 创建一些高级数据网格。
我创建了一个 actionscript 类,我在其中扩展了 VBox 对象:
包核心 { 进口 mx.containers.VBox; 导入 mx.controls.TextInput;
public class customItemRender extends VBox { public function customItemRender(_TextInput:TextInput, _TextInput2:TextInput) { //TODO: 实现函数 super.addChild(_TextInput); super.addChild(_TextInput2);
} } }
当我在数据网格上声明 de itemrender 属性时,问题出现了:
AdvancedDataGridColumn.itemRenderer = new ClassFactory(customItemRender(_TextInput1,_TextInput2));
编译器不会让我实例化我的 customItemRender。
有谁知道是否有解决问题的替代解决方案?
在此先感谢您的帮助,
问候哈维尔