kevinz
06-01-2004, 03:47 PM
I am working on writing a application with Flash Comm and AMFPHP.
In my application, my flash client make calls to the flash comm server. But when i made the same call at second time , it failed (the first time , the call is working perfect, and the other calls in my application works fine too ).
The code in Flash client is following :
function result(){
this.onResult = function (retVal){
trace("The results is " + retVal);
};
this.onStatus = function(errorVal){
trace("The Error is " + errorVal.code);
};
}
client_nc.call("bonus",new result(),3);
The code in flash comm server is like following :
Client.prototype.bonus = function (bonusType)
{
trace("Bonus request from "+this.username+" "+bonusType);
// .... do something here ....
return true;
}
And the error infomation in the app inspector:
TypeError: object is not a function
App Infomation :Application.Script.Error (level:error)
Failed to execute method (bonus).
App Infomation :Application.Script.Error (level:error)
I am frustrating about this, Any idea ?
Kevin
In my application, my flash client make calls to the flash comm server. But when i made the same call at second time , it failed (the first time , the call is working perfect, and the other calls in my application works fine too ).
The code in Flash client is following :
function result(){
this.onResult = function (retVal){
trace("The results is " + retVal);
};
this.onStatus = function(errorVal){
trace("The Error is " + errorVal.code);
};
}
client_nc.call("bonus",new result(),3);
The code in flash comm server is like following :
Client.prototype.bonus = function (bonusType)
{
trace("Bonus request from "+this.username+" "+bonusType);
// .... do something here ....
return true;
}
And the error infomation in the app inspector:
TypeError: object is not a function
App Infomation :Application.Script.Error (level:error)
Failed to execute method (bonus).
App Infomation :Application.Script.Error (level:error)
I am frustrating about this, Any idea ?
Kevin