XMLRPC client for ActionScript 2.0
http://xmlrpcflash.sf.net | xmlrpc@dopelogik.com


Method Class

Extends XML object. The end-coder does not need to worry about directly accessing Method.

Public Properties

Quiet:Boolean
When set to true, Connection will trace little to no debug info.

var rpc1 = XMLRPC.Connection(); rpc1 = XMLRPC.Quiet=true;

Public Methods

Render():Boolean
Renders method call and parameters into valid XMLRPC.

m = new XMLRPC.Method(); m.Render();


setMethod(method_name:String):Void
Sets the name of the remote method to be called.

m.setMethod('getFoo');


AddParameter(param_value:Object [,param_type:String]):Boolean
Used to add arguments to your method call. param_value can be type of data specified in the XMLRPC standard. param_type specified what type of data us being passed in. Data type constants are in XMLRPC.types.

m.AddParameter(['a','b','c'] ,XMLRPC.types.ARRAY);


ClearParameters():Void
Clears method call arguments/parameters. This is a wrapper for Method.ClearParameters.

rpc1.ClearParameters();


Public Events

None

Example

var m = new XMLRPC.Method(); m.AddParameter('vacum',XMLRPC.types.STRING); m.setMethod('spellCheck'); m.Render(); trace(m.toString()); //returns RPC Method Call in XML


Back to Main Page