Flash/ASP Integration

I’m still very new to actionscript and I’m trying get Flash and ASP working together.

I’m trying it out with a log in form.

I’ve got three fields and a button.

on (release) {
loadVariablesNum(“login.asp?schoolid=” + schoolid + “&username=” + username + “&password=” + password, 0);

}

I’ve also got a fourth text field that for now is displaying the result of the post.

login.asp querys the database and reports back:

if rstTemp.RecordCount = 0 Then
Response.Write(“errorMsg=Incorrect Username and or Password”)
Else
Response.Write(“errorMsg=Username Found”)
end if

I now need to act on the result found. If username is found I then want to move onto the next frame. How do I act on data received back from the query.

Many Thanks

John