【发布时间】:2010-06-28 07:52:51
【问题描述】:
我创建了一个扩展ComboBox 的类CustomCombo.as。发生的事情是CustomCombo 组合框显示为可编辑。我不想要这个,我找不到将editable 设置为false 的属性。
我也尝试将组合框的textInput.editable 控件设置为false,但无济于事。
任何帮助将不胜感激。
CustomCombo.as
package custom {
import spark.components.ComboBox;
public class CustomCombo extends ComboBox {
public function CustomCombo() {
super();
// this.editable = false; //<-- THIS DOESNT WORK ***Access of possibly undefined property editable through a reference with static type custom:CustomCombo
// this.textInput.editable = false; //<-- THIS DOESNT WORK ***Cannot access a property or method of a null object reference
}
}
}
【问题讨论】:
标签: apache-flex actionscript-3 combobox flex4