PDA

View Full Version : please please help


Charles
06-22-2002, 07:25 AM
I am having a problem trying to implement some exception handling with FlashMX Remoting. Currently when a user logs on to the site a function is called that ask the DBMS if the current user name and password are correct. If the server where to fail(I purposely turned it off) the site would never advised the user that an error had occurred or that the server was unreachable.

I am excepting the default responder in the service Object which makes the function call have the following syntax:
serObjCatSite.ValidateUser(UserName_txt.text,Pass_ txt.text);
I then have the following 2 functions:

function ValidateUser_Result(result)
{
//code to do if everything is ok
}
function ValidateUser_Status(error)
{
//code to do if an error occurs
}

The ValidateUser_Status() doesn’t work ANY insight as to what I am doing wrong would be GREATLY appreciated.

zoomfreddy
06-25-2002, 10:09 AM
you have to do a loop with a time-off to let flash know if something goes wrong, and then call the error function, else, the other function.

:cool:

Abelius
06-25-2002, 02:22 PM
yep.

An if statement within a getTimer function would do...

That means the getTimer function would give you a number, constantly in change. The if statement would do something if the number given by getTimer is -let's say- divisible by 1000, which would be like once a minute...