View Full Version : I can't make a call to server at second time

06-01-2004, 02: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 ?


06-02-2004, 11:39 AM
hello guyz...i wanna add emotions in my chat..i have got a simple text chat script in flash mx...and wanna add emotions there....plz help me in adding emotions...u can get the .fla of my simple text chat from DOWNLOAD .. so plz edit tht and add emotion thingy in tht i will be very gr8ful to u if u help me thanks. :)
---- KEVIN can u solve my problem --- i dont know wat to do with yr prob :( i'm sorry for tht

06-02-2004, 11:41 AM
I don't see anything to do with this thread and your problem... What you are doing is called thread hijacking... Please don't... :(