Hiding TextArea border in AS3

Submitted by Tim on 08 Jul 2008 - 17:06

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!

Comments

user picture>
- 20 Apr 2012 - 18:34

gr8 help thnx
user picture>
- 23 Mar 2012 - 17:24

until you click on it, you also need myTextArea.setStyle("focusRectSkin",Sprite);

Add new comment

The content of this field is kept private and will not be shown publicly.

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Tags