Got a request?
Email us...

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

PHPObject.getOutput()

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

Description
Method. If your remote task(s) has an output (eg. from echo, print and other similar functions), the gateway will keep all the output in the buffer and returns this buffer back to Flash. You can retrieve this output by calling the getOutput() method of the object.

Example
--------------------------------------------------------------------------------
// PHP
class Foo
{
function printCountry($id)
{
print $country_names[$id];
}
}

// Actionscript
myFoo = new PHPObject("Foo");
myFoo.printCountry_onResult = function()
{
trace(this.getOutput());
}
myFoo.printCountry(1);
--------------------------------------------------------------------------------

REFERENCE SEARCH


RELATED ENTRIES

...bject.utf8encode()
PHPObject.execute()
...ect.delayExecute()
...ect.abortExecute()
PHPObject()

LINK TO US