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 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
RE: [Flashcoders] TextArea BUG!! HELP
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 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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
RE: [Flashcoders] TextArea BUG!! HELP
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. But buttons LABEL stills blank!! Do you have any additional tip? Thanks, Bruno Mosconi -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
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea BUG!! HELP = Can't Change Button's Label
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
Re: [Flashcoders] TextArea BUG!! HELP
Bruno Mosconi schrieb: 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; textHtml += test line..BR/; textHtml += img src=\button_mc\ id=\button\sfvdfbybfbfbbr/; textHtml += test line..BR/; textHtml += img src=\ball\ id=\ball_mc\kjzhhgvhkgvjhjkhv; txtDescription.text = textHtml; this.onEnterFrame = function () { trace(txtDescription.label.button.butt.label = FOO); delete this.onEnterFrame } // this will do the trick micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea BUG!! HELP
YES!! You did IT! Why in hell we need this trick?? Invalidade(); function is supposed to redraw the component, isn't it? N1 got any idea?? Thanks Micha!! Again... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: quarta-feira, 9 de novembro de 2005 18:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] TextArea BUG!! HELP Bruno Mosconi schrieb: 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; textHtml += test line..BR/; textHtml += img src=\button_mc\ id=\button\sfvdfbybfbfbbr/; textHtml += test line..BR/; textHtml += img src=\ball\ id=\ball_mc\kjzhhgvhkgvjhjkhv; txtDescription.text = textHtml; this.onEnterFrame = function () { trace(txtDescription.label.button.butt.label = FOO); delete this.onEnterFrame } // this will do the trick 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