-
dynamic text field
is there a way to assign multiple colors to a text dynamically loaded into a text box, like in a faq box, to have the questions one color and answers another?
-
There are two ways of dynamically assigining colors:
1.) Create different Textformats for each color and specify a start- and endindex when applying them with TextField.setTextFormat().
2.) Use an HTML-textfield instead of an ordinary one. That will allow you to use the FONT-tag to specify colors.
Since the text comes from outside of Flash you will probably want to decide over the looks outside of Flash as well. So my guess is you'll be better off with option 2.
(Suppose, I should mention that I'm still using MX.)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|