Sadly TextArea Component does not have htmlText attribute, only text. If you try: txtDescription.htmlText = textHtml;
TextArea will show blank. Thanks anyway, Bruno -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: quarta-feira, 9 de novembro de 2005 13:32 To: Flashcoders mailing list Subject: Re: [Flashcoders] TextArea BUG!! HELP 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 >[email protected] >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

