Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

TextField.StyleSheet() issue

Guest
Feb 04, 2008 Feb 04, 2008
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
TOPICS
ActionScript
438
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 04, 2008 Feb 04, 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 04, 2008 Feb 04, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 04, 2008 Feb 04, 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_Part...

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.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 04, 2008 Feb 04, 2008
That is really interesting. I wonder why? Thanks ChrisElmes.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 05, 2008 Feb 05, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines