Question : How to Create on the fly XML for FLASH using ASP

Hi, I have some experience in ASP and I'm doing my first steps in FLASH. I do have a Flash Photo Gallery driven by an XML file. The idea is to create the XML dinamically because the photos are changing constantly.
How can I do that?
Thnak you.

The Action Script that read the XML is:
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
stop();
//create a XML object
var XMLTree:XML = new XML();
// set it to ignore white spaces
XMLTree.ignoreWhite = true;
// set a handler for the onLoad event
XMLTree.onLoad = function(s) {
	delete preloader_mc.onEnterFrame;
	if (!s) {
		// if an error occurs
		trace("error");
		return;
	}
	// go to the next frame 
	play();
};
if (xml == undefined) {
	xml = "data.xml";
}
// preload current movie 
_root.onEnterFrame = function() {
	if (this.getBytesLoaded() == this.getBytesTotal()) {
		delete this.onEnterFrame;
		// after the movie has loaded, load the xml file
		XMLTree.load(xml);
	}
};
 
The XML is:
 


	images/1.jpg
	images/2.jpg

Open in New Window Select All

Answer : How to Create on the fly XML for FLASH using ASP

Ehhh that was my mistake, I missed a line over here:



-V
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
<%
Response.ContentType = "text/xml"
Response.Write ""
Response.Write ""
Response.Write "images/1.jpg"
Response.Write "images/2.jpg"
Response.Write "images/3.jpg"
Response.Write "images/4.jpg"
Response.Write ""
%>
Open in New Window Select All
Random Solutions  
 
programming4us programming4us