Got a request?
Email us...

ActionScript Reference crumb.gif PHPObject Class crumb.gif PHPObject.abortExecute()

PHPObject.abortExecute()

Note
This pertains to the PHPObject class, available if the PHPObject extension is installed (available from Macromedia Exchange).

Description
Method. Allows you to "cancel" the current remote task. However, note that it is not really a cancellation - the remote task already sent will still complete its procedures and the server will still eventually send back a return message. If the task was sent to update a database, for example, this would still be done. The abortExecute() method only cause the incoming message, meant for the cancelled task, to be silently discarded (and therefore not affect the local object). The onAbort event is triggered when abortExecute is invoked.

Example
--------------------------------------------------------------------------------
// Actionscript
myFoo.onAbort = function()
{
trace("Your request has been aborted!");
}
myFoo.abortExecute();
--------------------------------------------------------------------------------

Reminder
Remember that each PHPObject can only have one active task at any time (to prevent data corruption), so when you abort a task, it is understood that it is the last task sent that is aborted.

REFERENCE SEARCH


RELATED ENTRIES

...bject.utf8encode()
...Object.getOutput()
PHPObject.execute()
...ect.delayExecute()
PHPObject()

LINK TO US