Micha, thanks for the help!!!!
Your 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 18:21
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TextArea BUG!! HELP
Bruno Mosconi schrieb:
> Ok, but how do I refer to button's instance to change dynamically its
label?
>
> Btw, I've found a FIX at:
> http://flashant.org/index.php?m=200412#239
> Looks like lots of people are addressing the same BUG unusual ways.
>
this.createTextField("textField_txt", 10, 0, 0, 100, 200);
textField_txt.wordWrap = true;
textField_txt.html = true;
textField_txt.htmlText = "Here's an interesting animation: <img
src='animation'
id='animation_mc'>Here's an interesting animation: ";
textField_txt.animation_mc.playing = true;
textField_txt.animation_mc.onPress = function () {
if (!this.playing) {
this.play();
} else {
this.stop();
}
this.playing = !this.playing;
}
// animation_mc is the linkage id of an animated MC in your library.
hth
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders