# Load xml to flash

**URL:** <https://forum.kirupa.com/t/load-xml-to-flash/116881>\
**Category:** Uncategorized\
**Created:** [July 22, 2004, 4:08am UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881 "2004-07-22T04:08:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![new\_bird](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@new\_bird](https://forum.kirupa.com/u/new_bird)\
**Post date:** [July 22, 2004, 4:08am UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/1 "2004-07-22T04:08:50Z")

</div>

Hi everyone.  
I know to load text file to flash. How do I do the same thing with an XML file? I have absolutley no idea how to use XML. I just want standard text, nothing Flashy. Any help is greatly appreciated. Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 4:11am UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/2 "2004-07-22T04:11:48Z")

</div>

do a search for tut’s on this subject. Most people will answer a specific question for a specific situation an look at code or a .fla you may be working on, but you need to do some research first.

Try [actionscript.org](http://actionscript.org), they have some tut’s on this i think.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 4:39am UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/3 "2004-07-22T04:39:52Z")

</div>

i read some, i know to create a xml to hold data,to load,but not understanding the display part, it seem the a lot of ways to display and i find the easy and good way.  
i be loading the whole xml starting the first line  
example here the xml file.

* * *

\<?xml version=“1.0” encoding=“UTF-8”?\>  
\<?xml-stylesheet type=“text/xsl” href=“jcdmenu.xsl”?\>  
\<menu\>  
\<cd\>  
\<pic\>jay\_1.jpg\</pic\>  
\<link\>jay\_link.html \</link\>  
\<title\>Ye Hui Hei\</title\>  
\<artist\>Jay Chou\</artist\>  
\<company\>Jerry.com\</company\>  
\<price\>$18.90\</price\>  
\</cd\>  
\<cd\>  
\<pic\>jolin\_1.jpg\</pic\>  
\<link\>jolin\_link.html \</link\>  
\<title\>72 bian\</title\>  
\<artist\>Jolin Cai\</artist\>  
\<company\>EMI\</company\>  
\<price\>$17.90\</price\>  
\</cd\>  
\<cd\>  
\<pic\>arron.jpg\</pic\>  
\<link\>arron\_link.html \</link\>  
\<title\>Xin Ge\</title\>  
\<artist\>Arron\</artist\>  
\<company\>SONY MUSIC\</company\>  
\<price\>$19.90\</price\>  
\</cd\>  
\</menu\>

* * *

loadText = new XML();  
loadText.load(“cdmenu.xml”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
//scroller is the dyanamic text  
scroller.text = loadText;  
};

}

is it possible to load the xml file in flash and edit the the xml then save it.  
the 3 above thing, load i can but the edit and save i hav no ideas  
and wat the parseXML function?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 11:47am UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/4 "2004-07-22T11:47:44Z")

</div>

you can’t change the xml file from flash…  
u can change the xml that u loaded into flash, but can’t save the changes to the external xml file.  
if you want to change the external xml with flash, u can use ASP,PHP and etc…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 2:05pm UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/5 "2004-07-22T14:05:05Z")

</div>

sorry, I never use xml to do what you want. I use them to load image arrays or to imput text into dynamic text fields. I can help with that, but I have no idea how to format xml data via the xml file itself.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 4:11pm UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/6 "2004-07-22T16:11:51Z")

</div>

i made a muldimedia cd that includes 5000 products of a company… and i used xml for seach the products with their properties. and the most imported thing is, this cd is updating itself from the internet. but the problem is, i must know the cd has updated before or not… if flash can writes to the xml file, this was very easy… but must made it with ASP and the other server side programming languages.  
so, u must use server side programming;)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 4:17pm UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/7 "2004-07-22T16:17:27Z")

</div>

[http://www.studiowhiz.com/tutorials/24/](http://www.studiowhiz.com/tutorials/24/)

---

<div class="post-metadata">

**Author:** ![new\_bird](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@new\_bird](https://forum.kirupa.com/u/new_bird)\
**Post date:** [July 26, 2004, 2:06am UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/8 "2004-07-26T02:06:10Z")

</div>

so u mean i cant change the content in flash but can change it using asp  
and when it open is in HTML format, from there i use the sendandload to save the xml.file correct?  
can anyone show me a sample on the

asp and the action script in the button save.  
tnk

---

<div class="post-metadata">

**Author:** ![new\_bird](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@new\_bird](https://forum.kirupa.com/u/new_bird)\
**Post date:** [July 26, 2004, 2:58am UTC](https://forum.kirupa.com/t/load-xml-to-flash/116881/9 "2004-07-26T02:58:06Z")

</div>

> [@bodyvisual](#):
>
> [http://www.studiowhiz.com/tutorials/24/](http://www.studiowhiz.com/tutorials/24/)

error on the page
