PDA

View Full Version : Remoting not return CF data


vidachristy
09-07-2004, 06:31 PM
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!!!!

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...


Vida