|
ActionScript Reference PHPObject Class
PHPObject.getOutput()
PHPObject.getOutput()
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. 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);
--------------------------------------------------------------------------------
|