Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / February 2006



Tip: Looking for answers? Try searching our database.

RelayResponder - resultFunc & faultFunc

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NeedFlashGurus - 13 Feb 2006 22:16 GMT
Hi

Can the resultFunction and faultFunction from the RelayResponder class return
any value? or ar they just void?

example:
(...)
pc.responder = new RelayResponder(this, 'userLoginResult', 'userLoginError');
(...)

//how can I catch the return?
function userLoginResult(res:ResultEvent):Boolean{
        return Boolean(res.result);

thanks
}
JanM - 15 Feb 2006 23:36 GMT
Yes for the case there is a result you can catch it, but the function is void:
pc.responder = new RelayResponder(this, "onLoginData", "onLoginFault");
function onLoginData(re:ResultEvent):Void {
    if(re.result != 0){
        cat_id = re.result;
        }
}

I also use a Fault function but if the server does not return anything, it
will not be invoked.
I never get something in this function:
function onLoginFault(fault:FaultEvent):Void {
    mx.remoting.debug.NetDebug.trace({level:"None",
    message:"There was a problem: " + fault.fault.faultstring });
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.