A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Really simple text color question

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    11

    Really simple text color question

    I've got a dynamic text field that accepts HTML tags. Is there a way to indicate for part of the text to be a different color?

    something like this:

    Code:
    [COLOR--SandyBrown]Menu:[/COLOR]
    [COLOR--DarkOliveGreen]Fish and Chips[/COLOR]
    [COLOR--DarkOrange]Boiled in oil and served on lettuce[/COLOR]
    producing this result:

    Menu:
    Fish and Chips
    Boiled in oil and served on lettuce

  2. #2
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    You use html coding, something like this;

    <font color="#ff0000">Cherry Red</font>

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Posts
    11
    I'm loading variables from an external file, and when I try this coding, I end up seeing it in the flash text box, even with HTML coding turned on. Is there a way to fix this? can you send a fla file example for me?

    Thanks

  4. #4
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    htmlText must be turned on for it to work.
    Attached Files Attached Files

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