onExtensionResponse()
Availability:
Flash Player 7, 8
SmartFoxServer Pro
Usage:
smartFox.onExtensionResponse(resObj:Object, type:String)
Description:
The event is fired when an extension responds to a client request.
Parameters:
resObj | The object returned contains all the data sent by the server side extension.
By convention a string property called _cmd is always present. The property contains the name of the server action that is responding. |
|
type |
A string. It can be either "xml" or "str" and it indicates which protocol was used for the response. By default xml is used. |
Returns:
nothing
Example:
smartfox.onExtensionResponse = function(resObj:Object, type:String) { var cmd:String = resObj._cmd if (cmd == "myCommand") { // Handle the response here } }
See also: