Skip to main content
February 4, 2008
Question

TextField.StyleSheet() issue

  • February 4, 2008
  • 3 replies
  • 450 views
Hello,

does any of you face problems using TextField.StyleSheet() ?
I'm populating one textarea with some text, but it does not became editable, and I'm sure it has something to do with the StyleSheet.

Any sugestion?

Thanks
This topic has been closed for replies.

3 replies

Inspiring
February 5, 2008
That is really interesting. I wonder why? Thanks ChrisElmes.
February 5, 2008
Hello, I always use texformat class, I usually don't use componnents, and wen I do, most of the times I can manage my problems using the label property.

in this case per example TextArea_instance_name.label.antiAliasType = "advanced";

In this particular case, I think the problem may be with the html tag used in the stylesheet, I used <f>, because if I don't use the stylesheet I have no problem.

I was hoping someone did find a work around to this problem, but I guess I'm with no luck

Thank's for replying
February 4, 2008
I just googled "Editable textField in Flash" and found this

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002174.html

It says:


Note: A text field with a style sheet applied to it is not editable. In other words, a text field with the type property set to "input" applies the style sheet formatting to the default text for the text field, but the content will no longer be editable by the user. Consider using the TextFormat class to assign styles to input text fields.


Inspiring
February 4, 2008
I don't use TextArea components so I don't know. But generally the editablitly of a TextField isn't controlled by the StyleSheet. It is controlled by:

myTextField.type=input

Which can be edited or

myTextField.type=dynamic

which can't.

The TextArea component has a editable property which seems like it should work and is also separate from the StyleSheet.

If you've already checked out those bits then we probably need to know more about your StyleSheet and how you are applying it.
February 4, 2008
Thanks for reply,

I did try, but it doesn't work

I'm using like this but no results, if I do not use stylesheets, it works pretty fine