jewelee
03-14-2009, 04:54 AM
Hi there;
I am stumped. How do you get rid of the blue border around a textInput component? I have got rid of the regular border, but when the user clicks on the text area itself, a blue border shows up. I have been searching, but .....
Also, I would like the cursor to show up to the far left of the text area.
Any help would be greatly appreciated!
Thank you in advance.
Here is the code:
import fl.controls.TextInput;
import flash.events.Event;
import flash.events.TextEvent;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
var textOne:TextInput = new TextInput();
var textOneFormat:TextFormat = new TextFormat();
textOne.setStyle("textFormat", textOneFormat);
addChild(textOne);
var emptySkin:Sprite = new Sprite();
textOne.setStyle("upSkin",emptySkin);//get's rid of border don't know why
textOne.text = "Text one";
textOne.setSize(textOne.textWidth+10, textOne.textHeight+4);
textOne.textField.autoSize = TextFieldAutoSize.LEFT;
textOneFormat.size = 15;
I am stumped. How do you get rid of the blue border around a textInput component? I have got rid of the regular border, but when the user clicks on the text area itself, a blue border shows up. I have been searching, but .....
Also, I would like the cursor to show up to the far left of the text area.
Any help would be greatly appreciated!
Thank you in advance.
Here is the code:
import fl.controls.TextInput;
import flash.events.Event;
import flash.events.TextEvent;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
var textOne:TextInput = new TextInput();
var textOneFormat:TextFormat = new TextFormat();
textOne.setStyle("textFormat", textOneFormat);
addChild(textOne);
var emptySkin:Sprite = new Sprite();
textOne.setStyle("upSkin",emptySkin);//get's rid of border don't know why
textOne.text = "Text one";
textOne.setSize(textOne.textWidth+10, textOne.textHeight+4);
textOne.textField.autoSize = TextFieldAutoSize.LEFT;
textOneFormat.size = 15;