The MC trick worked fine, but button's label can't be changed at all!

Take a look at this test code:

txtDescription.html = true;

var textHtml = "";
textHtml += "test line..............<BR/>";
textHtml += "<img src=\"bt\" id=\"button_mc\"/><br/>";
textHtml += "test line..............<BR/>";
textHtml += "<img src=\"ball\" id=\"ball_mc\"/>";

txtDescription.text = textHtml;
txtDescription.doLater(this, "setlabels");

tbt.label = "Test Button";
//trace(tbt.label);

function setlabels()
{
        _level0.txtDescription.label.button_mc.but.label = "Test Button";
        _level0.txtDescription.label.button_mc.but.invalidate();
        trace(_level0.txtDescription.label.button_mc.but.label);
        _level0.txtDescription.invalidate();
}

The STRAGE BUG here is that TRACE returns the new label value: "Test
Button", but in TextArea my button stills w/ its default value: "Button"!

Take a look:
http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla
http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: quarta-feira, 9 de novembro de 2005 17:25
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TextArea BUG!! HELP

Bruno Mosconi schrieb:
> Sadly TextArea Component does not have htmlText attribute, only text.
> 
> If you try:
> txtDescription.htmlText = textHtml;
> 
> TextArea will show blank.
> 

put the button inside another mc should give expected results. and btw:
isn't 
there a bug with <img/> at the very end of html inside textFields ??

micha
_______________________________________________
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