Packagecom.curlyben.utils
Classpublic class Console
InheritanceConsole Inheritance flash.display.Sprite

A terminal like overlay for use in debug environments. Intercepts builtin trace statements and prints them to the containing projector.
Many classes within the com.curlyben namespace use Console methods for this reason it is required that a version no older than 0.0.0.1 be available to all com.curlyben packages.



Public Methods
 MethodDefined 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
Constructor detail
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.

Parameters
parent:DisplayObjectContainer — The clip that will host the TextField for Trace output.

Example
Recommended implementation:
   // within main timeline or main class implementation
   var thisConsole:Console = new Console(this);
   

Alternative implementation:
   // 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.
   

Method detail
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.