Sebastian Schmidt
as3: easy logging with firebug console

If you do not use advanced loggers for client-side debugging like kapinspect - firebug may be a good choice!

(1) as3: the logger classes



(2) as3: the main application - lets log sth.


// #file

import com.basilicom.logger.Firebug;

var firebug:Firebug = Firebug.getInstance();

firebug.enabled = true;

firebug.console = “Basilicom.console”;

firebug.traceEnabled = true; 

firebug.log(“hello world”, “from flash”);

firebug.log(“my log from flash”, {“foo”:”bar”});

(3) javascript: the firebug console proxy



see my full post including complete source files:

  1. sebschmidt posted this