A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Rendering text in HTML issue

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Location
    California
    Posts
    149

    Rendering text in HTML issue

    It has been a few years since I have doine flash but I am back and running into troubles while trying to render HTML text. What I am trying to do may not be possible so I am hoping some of you fine folk can help me.

    I am using Flash 8 Professional, importing a text file using LoadVars. The dynamic text field (named blog_txt) is inside of a movie clip named blogText_mc. I do have "render text to HTML" turned on.

    When I use the HTMl tags, the text in between the tags disappear.

    Can anyone help out. Below is my code.

    var blogTextLV:LoadVars = new LoadVars();
    blogTextLV.load("blogText.txt");
    blogTextLV.onLoad = function(success) {
    if (success) {
    blogText_mc.blog_txt.htmlText = blogTextLV.blogText;
    }
    }

  2. #2
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    yea, you got to embed your dynamictext.. And if still its doesn't work then try little more
    Last edited by deepakflash; 01-20-2008 at 02:33 AM.

  3. #3
    Senior Member
    Join Date
    Aug 2003
    Location
    California
    Posts
    149
    Quote Originally Posted by deepakflash
    yea, you got to embed your dynamictext.. And if still its doesn't work then try little more
    I have looked at your two posts but I am confused. I have attached a screen print of my dynamic box properties. I have already embed the character sets I want. Are you saying I need to embed HTML tags? How do I go about that?

    This textbox is inside of a movie clip and reads from a text file so I cannot embed the actual text I want tp use, that would defeat the purpose.

    I'm sorry... I may just not understand.

  4. #4
    Senior Member
    Join Date
    Aug 2003
    Location
    California
    Posts
    149
    Sorry I forgot the screenshot of my dynamic tesxt box attachment.
    Attached Files Attached Files

  5. #5
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    what you have to do is...............
    1) embed your dynamic text box with uppercase, lowercase, numerals, punctuation
    2) check antiAlias for readability
    2) type some word INSIDE YOUR DYNAMIC TEXTBOX in "bold"(eg:this is bold)
    3) type some word INSIDE YOUR DYNAMIC TEXTBOX in "italic"(eg:this is italic).
    **Note : this will just follow with your text in bold so don't make another dynamic textbox

    So, now your dynamic textbox will look like this
    this is boldthis is italic

    now you know that this is just a temporary content, it will however be replaced by the content inside your text file

  6. #6
    Senior Member
    Join Date
    Aug 2003
    Location
    California
    Posts
    149
    Thanks for the help! It did work. Thanks!

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