A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: formatting dynamic text.. but different

  1. #1
    Senior Member
    Join Date
    Dec 2002
    Posts
    156

    formatting dynamic text.. but different

    I've seen many posts about formatting dynamic text but they all seem to use HTML, I need another option to work directly in the flash player.

    dynText = "this is my text"

    I'd like to make say, "is my" in bold and the rest not using actionscript.

    Any ideas?

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    well the browser does not render the 'html' text within flash, flash does that itself.

    e.g if you have a text field called tTest then the following will make bold the letters enclosed in <b>

    Code:
    tTest.html = true;
    tTest.htmlText = "<B>This is bold</B> while this is not bold";
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Senior Member
    Join Date
    Dec 2002
    Posts
    156
    i'd like my app to be played through the flash player, enclosing my text in <B>text</B> like that displays just that on screen (with the B's)... do I need to change some kind of setting?

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    the <b> tags should not show in the above code...copy and paste the exact thing in a new flash movie and test it out
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  5. #5
    Senior Member
    Join Date
    Dec 2002
    Posts
    156
    thanks sorry I was being stupid (case problem)

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