[Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Mendelsohn, Michael
Hi list... I'm feeding some htmlText into a TextField and the string within the title tag of the html is rendering in the TextField. Is there a trick to hide this? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Merrill, Jason
ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael Sent: Wednesday, August 27, 2008 10:03 AM To: Flash Coders List Subject: [Flashcoders] textField fed

Re: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread H
I think pre parsing the string is your only option. textField.htmlText = myString.replace(/title.+?\/title/g, ); Might be easier to do if the html text is xml compliant. Make it an xml object and run an xml query on to get all nodes where node.name().toString() != title... H On Wed, Aug 27,

RE: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Jim Hayes
Of Merrill, Jason Sent: 27 August 2008 16:23 To: Flash Coders List Subject: RE: [Flashcoders] textField fed htmlText renders title myTextField.html = true; myTextField.htmlText = yourText Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join

RE: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Mendelsohn, Michael
Perfect answer, H. (Too bad it's AS2.) :-( Thanks! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread H
Hey Mike, public static function stripTag(s:String, t:String):String { if(typeof(s) == 'string'){ t = t.toUpperCase(); var i:Number = s.length-1, oT:String = ''+t, cT:String = '/'+t, upString:String = s.toUpperCase();

Re: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread sebastian
Looks cool, but any chance you could replace your micro-variable names with real-world words for easy reading? Reminds me of moments when I decide I need to run for coffee at work... ;) H wrote: Hey Mike, public static function stripTag(s:String, t:String):String {

RE: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Mendelsohn, Michael
Excellent H! Thanks very much! Glad you had that lying around. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread H
Hi sebastian, s = string and t = tag - that should help with using the function... Well, I can briefly explain it. It begins by checking whether you passed in for a string is actually a string. I had this function hooked into a data driven series of processes, so the actual string I was working