Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-20 Thread Paul Jinks
Thanks Ktu I managed to get this to work by using !CDATA[...]] just as you suggested. I hadn't understood that it needed to go inside each of my xml tags. It's something of a chore, but the quiz is looking a lot better now. Cheers Paul On 19 May 2010 16:38, Ktu

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-20 Thread Kerry Thompson
Paul Jinks wrote: I managed to get this to work by using !CDATA[...]] just as you suggested. I hadn't understood that it needed to go inside each of my xml tags. Just a clarification--it doesn't need to be inside each of your XML tags. Only the ones that contain text you're going to display,

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-20 Thread Ktu
and what goes in the CDATA is not parsed by the xml reader. On Thu, May 20, 2010 at 12:20 PM, Kerry Thompson al...@cyberiantiger.bizwrote: Paul Jinks wrote: I managed to get this to work by using !CDATA[...]] just as you suggested. I hadn't understood that it needed to go inside each of my

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-20 Thread Dave Watts
I managed to get this to work by using !CDATA[...]] just as you suggested. I hadn't understood that it needed to go inside each of my xml tags. Just a clarification--it doesn't need to be inside each of your XML tags. Only the ones that contain text you're going to display, especially if

[Flashcoders] Line break in dynamic text imported from xml

2010-05-19 Thread Paul Jinks
It's been a long time since I've done any coding. I think this is pretty straightforward but it has me beat. Can you help? I'm working on a quiz using AS1 (I think) that reads questions and answers from an xml file. (see below for the script). I'd like to introduce line breaks into the feedback,

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-19 Thread Nathan Mynarcik
I believe you can use \n in your feedback string and it makes a new line. On Wed, May 19, 2010 at 10:56 AM, Paul Jinks p...@pauljinks.co.uk wrote: It's been a long time since I've done any coding. I think this is pretty straightforward but it has me beat. Can you help? I'm working on a

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-19 Thread Ktu
From what I remember when using xml with html, you need to wrap your html inside of a* ![CDATA[**]]* to get it to render properly. You can put a \r or \n in it as well. On Wed, May 19, 2010 at 10:56 AM, Paul Jinks p...@pauljinks.co.uk wrote: It's been a long time since I've done any coding. I

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-19 Thread Paul Jinks
Thanks for your reply Nathan I've tried \n and it shows up as plain text the same as \r. I'm not sure why this should be, but I'll keep digging. Paul On 19 May 2010 16:35, Nathan Mynarcik nat...@mynarcik.com wrote: I believe you can use \n in your feedback string and it makes a new line.

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-19 Thread Paul Jinks
Thanks Ktu Yes, that sounds right. However, I'm not trying to enter the text as html. When I've tried to alter the script to allow this, it's crashed. I probably ought to go back and fix this properly, but I'm looking for a way to put line breaks in non-html dynamic text. I'll keep digging and