A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: dynamic text field

  1. #1
    Member
    Join Date
    Dec 2002
    Location
    Seattle
    Posts
    47

    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?

  2. #2
    Member
    Join Date
    Dec 2003
    Posts
    58
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center