Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash to asp and back

Status
Not open for further replies.

Asperon

Programmer
Jul 20, 2007
2
US
the following code is in actionscript in flash. the myXML.send(); sends the xml data to my aspx page. how do I get that asp code to recieve the myXML data and then write it to the text file test.txt?

*ignore the link it made of my local host

Code:

myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("test.txt");
myXML.onLoad = function(success){
if(success){
if(myXML.status == 0){
trace("Connected!");
}
else{
trace("Parse Error: " + myXML.status);
}
}
else{
trace("Load Error")
}
}
newElement = myXML.createElement(player1);
myXML.appendChild(newElement);
newElement = myXML.createElement(Name);
myXML.firstChild.nextSibling.appendChild(newElement);
newElement = myXML.createElement(lv);
myXMl.firstChild.nextSibling.appendChild(newElement);

myXML.send("
 
Since the file extension is ASPX you might want to try the ASP.NET forum: forum855


In the script that receives the file, just check out what comes over in the Request, it will probably be much like submitted form data.
 
what would be better to use asp or aspx because I know vb.net, but I don't need the page to have anything on it, I just need it to handle data. so would asp be a better format to go with?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top