topical media & game development

talk show tell print

professional-flex-code-19-TracePanelTarget.ax

professional-flex-code-19-TracePanelTarget.ax [swf] flex


  package 
  {
  
  import mx.core.mx_internal;
  import mx.controls.TextArea;
  import mx.logging.targets.LineFormattedTarget;
  
  use namespace mx_internal;
  
  public class @ax-professional-flex-code-19-TracePanelTarget extends LineFormattedTarget {
  
      public function @ax-professional-flex-code-19-TracePanelTarget( console:TextArea ) {
      super();
      this.console = console;
      }
      
      private var console:TextArea;
   
    override mx_internal function internalLog(message:String):void
    {
        console.text += message + "\n";
      }
  }
  }


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.