getting data from a .asp page
I seem to have some issue getting infro from a database via .asp into flash, im am extremely new at this so any help would be appreciated.
flash code:
var loader : URLLoader = new URLLoader;
var urlreq:URLRequest = new URLRequest("index.asp");
var urlvars: URLVariables = new URLVariables;
var theText:TextField = new TextField();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
urlreq.method = URLRequestMethod.POST;
loader.load(urlreq);
theText.text = urlvars.firstName + " name."
addChild(theText);
ASP Code(connected to DB ok and can pull info into html page):
<%
Dim firstName, lastName
firstName = rs1.Fields.Item("firstName").Value
lastName = rs1.Fields.Item("lastName").Value
%>
this flash file is then embedded into the .asp page. Any help would be apprecated, thanks!
