Hello. I'm in an urgent need of help.
I have 2 XML files 1.XML and 2.XML which contains the following:
1.XML
Code:
<scans1>
<documents1>
<set1>
<![CDATA[
<a href="menu/1.pdf" target="_blank">Document1</a>
<a href="menu/2.pdf" target="_blank">Document2</a>]]>
</set1>
</documents1>
<documents2>
<set2>
<![CDATA[
<a href="menu/3.pdf" target="_blank">Misc1</a>
<a href="menu/4.pdf" target="_blank">Misc2</a>
<a href="menu/5.pdf" target="_blank">Misc3</a>]]>
</set2>
</documents2>
</scans1>
2.XML
Code:
<scans1>
<documents1>
<set1>
<![CDATA[
<a href="menu/6.pdf" target="_blank">John</a>
<a href="menu/7.pdf" target="_blank">David</a>
<a href="menu/8.pdf" target="_blank">Max</a>]]>
</set1>
</documents1>
<documents2>
<set2>
<![CDATA[
<a href="menu/9.pdf" target="_blank">Default1</a>
<a href="menu/10.pdf" target="_blank">Default2</a>]]>
</set2>
</documents2>
</scans1>
My problem is not how to import CDATA in Flash. That is already loaded.
I need to know if there is a way to create a form in Flash with a "add new line" button, document name field and document description link field.
I was thinking that adding a new line would add smth like:
Code:
<![CDATA[
<a href="menu/6.pdf" target="_blank">John</a>
<a href="menu/7.pdf" target="_blank">David</a>
<a href="menu/8.pdf" target="_blank">Max</a>
<a href="menu/xxxxxx.xxx" target="_blank">yyyyy</a>]]>
And the 2 txt fields from the form use a find and replace event.... or smth...
Is the first time I'm playing with adding lines inside CDATA tag and really I cannot sleep at night.... searched through internet for similar things and in AS2.0 I found nothing.