txtDescription.text = textHtml;
should be
txtDescription.htmlText = textHtml;

- Andreas


Bruno Mosconi wrote:

I'm preceding a simple task here, insert HTML content in a TextArea
component including a simple Button component and a MC.



First, I've imported TextArea and Button comps to my library.

Put TextArea at Stage and name it as "txtDescription".

Next step, write down some code:



[CODE]

txtDescription.html = true;



var textHtml = "";

textHtml += "test line..............<BR/>";

textHtml += "<img src=\"Button\" id=\"button_mc\"><br/>";

textHtml += "test line..............<BR/>";

textHtml += "<img src=\"ball\" id=\"ball_mc\">";



txtDescription.text = textHtml;

_lavel0.txtDescription.label.button_mc.label = "Test";

trace(_lavel0.txtDescription.label.button_mc.label);

[/CODE]



It was supposed to work fine, but a <b> very strange BUG </b> came along...



See odd result and source file here:

<a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf>
Meet the BUG! </a>

<a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla>
Source Code Here </a>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to