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!

I really dont know any asp but . . . the loadVariablesNum(“script.asp”, 0, “POST”); method will send aaaaall the variables in the level you specify, with an specific method (POST or GET like the form mails), you have to define the variables you want to send in _root of the level you want to send and then call them by their name in the server script (I dont know how that works in asp, in php is something like $POST[‘variableName’], POST for the post method).
you can send any number of variables in that way