sendAndLoad() and .ASP and XML

Happy Friday everyone!

OKOK, here is what i am ‘trying’ to do. I have a flash menu which is currently loading its contents via a ever-changing XML file… well this has always been a good thing and worked just fine… until the release of AOL 9.0, which for some reason causes the XML to stop loading.

So I found a workaround for this… rather than calling “menu.xml” I have this sript called “proxy.asp” which loads the “menu.xml” file into it via some sort of crazy .asp tunneling and object creation. Here is the proxy.asp file::


<%@ LANGUAGE=VBScript%>
<% 
	Response.Buffer=True 
	Dim MyConnection, TheURL
	
	' Specifying the URL
	TheURL = "http://www.mywebsite.com/flash/menu.xml"
	
	 Set MyConnection = Server.CreateObject("Microsoft.XMLHTTP")
	' Connecting to the URL
	MyConnection.Open "GET", TheURL, False
		
	' Sending and getting data
	MyConnection.Send 
	TheData = MyConnection.responseText

	'Set the appropriate content type
	Response.ContentType = MyConnection.getResponseHeader("Content-Type")
	Response.Write (TheData)

	Set MyConnection = Nothing
%>


Ok?

NOW…since I run in literally hundreds of websites I need it to be dynamic. Is there a way for me to use the sendAndLoad() in Flash to pass the “proxy.asp” file a couple variables that will return the XML as an XML Object back into Flash? I know it can return Strings, but I need to learn how to send 2 variables out - ID and progID - and then based on that I will have the “theURL” variable in the proxy.asp file load the appropriate menu.xml file.

So the jist of my question is how do I set up a sendAndLoad() with the LoadVars() and return XML from the proxy.asp??

Lol… I just read through that and even I am confused – sorry!

Thanks for any help guys!