| Property | Defined By | ||
|---|---|---|---|
| console : InteractiveConsole
This is the default console. | system.terminals | ||
| output : Function
Text output function. | system.terminals | ||
| console | property |
public var console:InteractiveConsoleThis is the default console.
package
{
import system.terminals.console;
import com.test.MyConsole; // new to implent InteractiveConsole interface
public class Test
{
public function Test()
{
system.terminals.console = new MyConsole();
}
}
}
| output | property |
public var output:Function
Text output function.
You can replace it with any custom function or method to write to text file,
to display in a TextField, send to socket, etc.
by default it uses the trace() function.
The function signature is the following: function name( message:String ):void.
package
{
import system.terminals.output;
public class Test
{
public function Test()
{
system.terminals.output = myoutput;
}
public function myoutput( msg:String ):void
{
trace( "[" + msg + "]" );
}
}
}