Connecting Tech Pros Worldwide Help | Site Map

To link Flash & ASP

Newbie
 
Join Date: Jul 2008
Posts: 1
#1: Jul 1 '08
My new.asp code like this.
<%
dim text1
text1 = "sample"
response.write "&txt=text1"
response.write("txt="&text1)
response.urlencode("txt=&text1")
%>
I tried with all the above statements individually.

In flash two textfields and one button is there.
one dynamic text with instance name - n
one dynamic text with var name - txt
button with instance name - but

Action script code as follows.

but.onRelease=function() {
var nametxt:LoadVars=new LoadVars();
nametxt.onLoad = function(success:Boolean){
if(success){
n.text="success";}
else
{ n.text="Error";
}
}
txt=txt;
loadVariables("http://localhost/Flashpgm/new.asp","GET");
}


I also changed the above code in different types and worked but getting only
UNDEFINED message in flash.
both files are in same directory.

Pleeeeeease anyone help.....
Reply