|
ActionScript Reference PHPObject Class
PHPObject.delayExecute()
PHPObject.delayExecute()
Entry Owner: Sunny Hong, Started: October 19, 2003
Note
This pertains to the PHPObject class, available if the PHPObject extension is installed (available from Macromedia Exchange).
Description
Method. Stops remote methods from being sent to the server immediately when they are called; instead they will be kept in a queue until the PHPObject.execute() method has been called, then the methods will be sent to the server in a batch.
This method should only be used when you need to execute remote methods sequentially, in those situations where you would not require interim results from the server in-between remote method calls.
The 'onResult' event of the last method on the queue list is executed upon receiving response from the server.
Example
--------------------------------------------------------------------------------
// Actionscript
myFoo = new PHPObject("Foo");
myFoo.doRemoteMethod2_onResult = function(result)
{
// trace(result)
}
myFoo.delayExecute();
myFoo.doRemoteMethod1();
myFoo.doRemoteMethod2();
myFoo.execute();
--------------------------------------------------------------------------------
|