;

PDA

Click to See Complete Forum and Search --> : Rendering text in HTML issue


Bubbapuck
01-19-2008, 02:49 PM
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;
}
}

deepakflash
01-20-2008, 01:29 AM
yea, you got to embed your dynamictext.. And if still its doesn't work then try little more (http://board.flashkit.com/board/showpost.php?p=3983884&postcount=9)

Bubbapuck
01-20-2008, 10:29 AM
yea, you got to embed your dynamictext.. And if still its doesn't work then try little more (http://board.flashkit.com/board/showpost.php?p=3983884&postcount=9)

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.

Bubbapuck
01-20-2008, 10:31 AM
Sorry I forgot the screenshot of my dynamic tesxt box attachment.

deepakflash
01-23-2008, 09:13 AM
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

Bubbapuck
01-23-2008, 12:04 PM
Thanks for the help! It did work. Thanks!