如何在运行时设置宝石文本输入禁用/只读?为什么我下面的代码不起作用?如何设置?
<j:TextInput id="txtCode">
<j:beads>
<j:TextPrompt prompt="Project Code" id="promptCode" />
<j:StringValidator required="5" autoTrim="false"
requiredFieldError="Need more than 5 characters"/>
<j:Disabled/>
</j:beads>
</j:TextInput>
private function btnAdd_click(event:MouseEvent):void
{
txtCode.beads[2]=false;
}
谢谢,合唱团