[Flashcoders] XML and htmlText

2010-06-01 Thread Lehr, Theodore
To me, at least, this seems very weird... I have a textfield I am creating in as... I am doing something like this: main_txt.htmlText = Question: +xmlData.children()[i].children()[0]+br/; If I have a line break br/ IN the xml - it shows up... but the line break that is hardcoded in that

Re: [Flashcoders] XML and htmlText

2010-06-01 Thread allandt bik-elliott (thefieldcomic.com)
i think that textfields treat returns (\n or \r) in what it expects to be html text as whitespace i'd recommend wrapping any html in ![CDATA[ ]] and just inserting them wholesale rather than getting them as children of a node so thexml mynode![CDATA[pThis is a test. emDo not adjust your