Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-22-2002, 07:25 AM   #1
Charles
Registered User
 
Join Date: Jun 2002
Posts: 1
Send a message via AIM to Charles Send a message via Yahoo to Charles
Question please please help

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.
Charles is offline   Reply With Quote
Old 06-25-2002, 10:09 AM   #2
zoomfreddy
anything...are you sure?
 
zoomfreddy's Avatar
 
Join Date: Jul 2001
Location: Mexico City
Posts: 560
Default

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.

zoomfreddy is offline   Reply With Quote
Old 06-25-2002, 02:22 PM   #3
Abelius
Worldkit Vote Holder
 
Abelius's Avatar
 
Join Date: May 2002
Location: Miami - USA
Posts: 815
Send a message via Yahoo to Abelius
Default

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...
__________________
Cordially,
Abelius
Commuting between Birmingham, AL, Miami, FL and Beijing, China
http://www.worldkit.com
Abelius is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.