Groups | Blog | Home
all groups > macromedia flash flash remoting > september 2004 >

macromedia flash flash remoting : Remoting HELP!!!!


vidachristy
9/3/2004 7:21:21 PM
Remoting not return CF data
I hope you can help.
I am working with Flash MX 2004 and CF MX 2004.
In my flash app, I am attempting to query the database and return the values
to Flash. the code will work from Flash to the CF Component. the CF Component
will do its thing. And then it stops. the _Result in the Flash movie will never
kick off.

Any suggestions would be sooooo appreciated!!!!

Thanks, Vida


Benjamin Jones
9/3/2004 8:12:37 PM
make with the code ....



vidachristy
9/7/2004 2:58:46 PM
Sorry, here's the repost with the code.
I should probably mention that this is incapsulated inside a movieclip called
from the main movie...

NetResponder=function(callbackObject, resultMethod, statusMethod)
{
trace("net responder");
//set properties
this.callbackObject=callbackObject;
this.resultMethod=resultMethod;
this.statusMethod=statusMethod;
//execute passed result responder using callbackobject
this.onResult=function(result)
{
trace("on Result");
this.resultMethod.call(this.callbackObject, result);
}
//execute passed status responder using callbackobject
this.onStatus=function(status)
{
trace("on Status");
this.statusMethod.call(this.callbackObject, status);
}
}

/*********************************************************
functions and object methods
*********************************************************/
newFair = function()
{
var p_regdate = pbdate_txt.text;
var p_regend = pedate_txt.text;
var p_jfdate = pdate_txt.text;
var p_title = ptitle_txt.text;
var p_loc = ploc_txt.text;
trace(p_regdate);
trace("newFair function");
hrService.newJobFair(new NetResponder(this, newFair_result,
newFair_status),p_regdate, p_regend, p_jfdate, p_title, p_loc);
psave_btn.disable();

}

function newFair_result(result)
{
trace("newFair result");
trace(result);
if (result == 'N'){
openMessageBox("There has been an application error. ");
}else{
psuccess_text.text = "You have successfully created a new job fair.";
}
}
function newFair_status(result)
{
openMessageBox(result.description, "Fatal Error", "error");
}

Thanks Again...
VText
AddThis Social Bookmark Button