Remove textarea border

How do I remove the border from this textarea in Flash using AS3?

I really don't know what I am doing and I am just playing around...
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.color = 0xFFFFFF;
myTextFormat.size = 20;

import fl.controls.TextArea;

var feedLabel:TextArea = new TextArea();

feedLabel.move(10,2);
feedLabel.setSize(220,36);
feedLabel.text = "Larry is here!";
feedLabel.setStyle("textFormat",myTextFormat);
feedLabel.condenseWhite = true;
feedLabel.textField.opaqueBackground = 0x5398EE;

addChild(feedLabel);

Open in new window

beapitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SemmetjuCommented:

Use TextField.border:
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.color = 0xFFFFFF;
myTextFormat.size = 20;

import fl.controls.TextArea;

var feedLabel:TextArea = new TextArea();

feedLabel.move(10,2);
feedLabel.setSize(220,36);
feedLabel.text = "Larry is here!";
feedLabel.setStyle("textFormat",myTextFormat);
feedLabel.condenseWhite = true;
feedLabel.textField.opaqueBackground = 0x5398EE;
feedLabel.border = false;

addChild(feedLabel);

Open in new window

0
beapitAuthor Commented:
With that I get:
1119: access of possibly undefined border through a reference with static type fl.controls:textarea
0
SemmetjuCommented:
Ah I was mistaken you should use the TextField class instead, do mind that you will lose some functionality like the scrollbar etc.
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.color = 0xFFFFFF;
myTextFormat.size = 20;

import flash.text.TextField;

var feedLabel:TextField= new TextField();

feedLabel.x = 10;
feedLabel.y = 2;
feedLabel.width = 220;
feedLabel.height = 36;
feedLabel.text = "Larry is here!";
feedLabel.defaultTextFormat = myTextFormat;
feedLabel.condenseWhite = true;
feedLabel.opaqueBackground = 0x5398EE;
feedLabel.border = false;

addChild(feedLabel);

Open in new window

0
SemmetjuCommented:
Or even better:

var myTextFormat:TextFormat = new TextFormat();
myTextFormat.color = 0xFFFFFF;
myTextFormat.size = 20;

import fl.controls.TextArea;

var feedLabel:TextArea = new TextArea();

feedLabel.move(10,2);
feedLabel.setSize(220,36);
feedLabel.text = "Larry is here!";
feedLabel.setStyle("textFormat",myTextFormat);
feedLabel.setStyle("focusRectSkin",Sprite);
feedLabel.setStyle("upSkin",Sprite);
feedLabel.condenseWhite = true;
feedLabel.textField.opaqueBackground = 0x5398EE;

addChild(feedLabel);

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
beapitAuthor Commented:
That did it, thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.