idratherbearobot
Programmer
I am writing a flash movie that will read a dynamicaly generated list of file names from an ASP script.
The issue I am having is that when Flsh accesses the ASP via loadVariablesNum, it is reading it as a tesxt file, not an ASP.
I have included sample code below to illustrate what I mean.
Sample ASP:
<%
dim xvar
For index = 1 to 5
xvar = xvar & "x,"
Next
Response.Write "&testVar=2"
Response.write xvar
Response.write "&"
%>
Sample ActionScript
loadVariablesNum("testASP.asp", 0, "GET");
I then have a dynamic text field with a variable set to testVar.
After accessing the ASP, the text field reads:
2"
Response.write xvar
Response.write "
It should read:
2x,x,x,x,x,
Can anyone help me out? Tell me what I'm doing wrong?
The issue I am having is that when Flsh accesses the ASP via loadVariablesNum, it is reading it as a tesxt file, not an ASP.
I have included sample code below to illustrate what I mean.
Sample ASP:
<%
dim xvar
For index = 1 to 5
xvar = xvar & "x,"
Next
Response.Write "&testVar=2"
Response.write xvar
Response.write "&"
%>
Sample ActionScript
loadVariablesNum("testASP.asp", 0, "GET");
I then have a dynamic text field with a variable set to testVar.
After accessing the ASP, the text field reads:
2"
Response.write xvar
Response.write "
It should read:
2x,x,x,x,x,
Can anyone help me out? Tell me what I'm doing wrong?