errorString - border Bug?
When I set an errorString on a UIComponent, reset it (set to null) and
afterwards want to set a borderColor it doesn't work - it doesn't change the
color (or any other border style at all).
Is this a bug or am I doing something wrong? (tested with flex 3.2)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function setErrorString():void
{
text_input.errorString = "Test";
}
private function resetErrorString():void
{
text_input.errorString = null;
text_input.setStyle("borderColor", "#0000ff");
//Border color should now be blue
}
]]>
</mx:Script>
<mx:TextInput x="10" y="10" id="text_input" borderColor="#00ff00"/>
<mx:Button x="178" y="10" label="1. Set" click="setErrorString()"/>
<mx:Button x="251" y="10" label="2. Reset" click="resetErrorString()"/>
</mx:Application>
|