Hi All,
I've created an XML file (Sample below).
Code:<faq> <category>Notifications</category> <faqno>1.1</faqno> <question><![CDATA[Question 1.1]]></question> <response><![CDATA[Response 1.1]]></response> <revdate><01/01/06></revdate> </faq>
I've loaded it into my flash movie and created an array.
I use the following code to display the array results in a dynamic text box (list). This all works, after a lot of work and much to my amazement.
Code:list = ""; for (i=0; i<faqs.length; i++) { list += "<br><br><b>" + faqs[i].category + "<br><br>" + faqs[i].faqno + " " + faqs[i].question + "</b><br>" + faqs[i].response + "<br><p align='right'><font size='11px'> Last Revision: " + faqs[i].revdate + "</font></p>"; } stop();
Finally my question: Can I modify the display code in order to display the category only once until a new category is reached?
Thanks a bunch,
Debbie


Reply With Quote