Macromedia Flash Server - SO Part II

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2005 > SO Part II





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SO Part II
Simon Lord

2005-04-07, 5:49 pm

Ok, I created a small app that displays the currently stored phrase on
the server side an a means to update that phrase to something else. I
can Update the phrase from the client side, and if I request the new
phrase from the client side I can trace it out in my shell.

But it refuses to actually pass the requested phrase back to the user,
FCS just states:

line 36: TypeError: client.call is not a function

.... I don't quite understand the error here. Here are the two new
functions I added to my main.asc.

Client.prototype.setPhrase = function(myphrase) {
phraseSO.setProperty("phrase", myphrase);
};

Client.prototype.getPhrase = function(client) {
whatPhrase = phraseSO.getProperty("phrase");
// ------------------------------------------
// THIS IS WHERE FCS SPITS OUT THE ERROR ABOUT CLIENT CALL
client.call("updatePhrase", null, whatPhrase);
};

Sincerely,
Simon


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com