Hiding TextArea border in AS3
Posted by: thijs on
Jul 8th, 2008 |
Filed under: flash
Problem:
TextArea shows a border by default
Solution:
myTextArea.setStyle("upSkin",Sprite);
Description:
Using a TextArea in actionscript 3 could come in handy as the Flash component adds in a ScrollBar by default. But it also provides some things you might not want there..
One of those things is the border, that is placed there by default.
Inspired by the solution posted here I found that you can override the skin that is used by default in the component ("upSkin") by using:
myTextArea.setStyle("upSkin",Sprite);
by overriding it with a Sprite, which is empty by default, all the visual aspects are cleared... including the border!

Tags: 
Add A Comment