Package | com.curlyben.utils |
Class | public class Console |
Inheritance | Console ![]() |
Method | Defined by | ||
---|---|---|---|
Console(parent:DisplayObjectContainer)
Creates console output field on top of parent.
| Console | ||
Trace(... args):void
[static]
Like the builtin trace, Trace outputs to the debugger output panel.
| Console |
Console | () | constructor |
public function Console(parent:DisplayObjectContainer)
Creates console output field on top of parent.
It is recommended that a movies own instance be passed
as the parent parameter.
Many com.curlyben classes make use of Console, but it is not
required that an instance is created in order for those classes
to work, Trace messages will be intercepted only if an instance
of Console is created.
parent:DisplayObjectContainer — The clip that will host the TextField for Trace output.
|
// within main timeline or main class implementation var thisConsole:Console = new Console(this);
// within main timeline or main class implementation new Console(this); // notice that the instance returned by the creator is not assigned // this is neither convention or required as all Console methods and // properties are static.
Trace | () | method |
public static function Trace(... args):void
Like the builtin trace, Trace outputs to the debugger output panel. Trace will also copy the trace-like output to an in-movie TextField if an instance of Console has been created.
Parameters... args — A collection of one or more objects to trace.
|