The ASP tutorials are written and need to be tested in an IIS environment. In the IED environment, the hard whole is definitely no effect (bring the backstage to direct dry friend point more, haha, so in advance to say.) )
 
ASP code
 
Code:
 
 
 
   <% @language = "vbscrīpt" codepage= "65001"%> 
  
<% 
  
Dim A,b,ans 
  
A=cint (Request.Form ("a")) 
  
B=cint (Request.Form ("B")) 
  
Ans=a+b 
  
Response.Write ("<?xml version=" "1.0" "encoding=" "Utf-8" "?>") 
  
Response.ContentType = "Text/xml" 
  
Response.Write ("<math>") 
  
Response.Write ("<a>" &a& "</a>") 
  
Response.Write ("<b>" &b& "</b>") 
  
Response.Write ("<ans>" &ans& "</ans>") 
  
Response.Write ("</math>") 
  
Response.End () 
  
%> 
 
 
 
Flash code
 
Code:
 
  ----------------------URLRequest-------------------- 
 
var send_urlrequest:urlrequest =new urlrequest (); 
 
Send_urlrequest.url= "flash023.asp"; 
 
Send_urlrequest.method=urlrequestmethod.post; 
 
----------------------Data Carrier--------------------- 
 
var data_urlvariables:urlvariables =new Urlvariables; 
 
Data_urlvariables["a"]=26; 
 
data_urlvariables["B"]=100; 
 
Send_urlrequest.data=data_urlvariables; 
 
-----------------------XML------------------------ 
 
var load_xml:xml; 
 
----------------------Urlloader-------------------- 
 
var handler_loader:urlloader =new Urlloader; 
 
Handler_loader.addeventlistener (Event.complete, Onloadcompletehandler); 
 
function Onloadcompletehandler (_evt:event): void { 
 
Load_xml=xml (_evt.target.data); 
 
Show_txt.text =load_xml; 
 
Show_txt.appendtext ("The Return of which is:" +load_xml.ans); 
 
} 
 
try { 
 
Handler_loader.load (send_urlrequest); 
 
} catch (_err:error) { 
 
Trace (_err); 
 
} 
 
--------------------Create a TextField for display---------------- 
 
var Show_txt:textfield =new TextField; 
 
Show_txt.multiline =show_txt.wordwrap =true; 
 
Show_txt.width =show_txt.height = 400; 
 
show_txt.x=75; 
 
Addchild (Show_txt);