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 Main.as

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: http://sebschmidt.blogspot.com/2011/07/as3-logging-with-firebug.html

  1. sebschmidt posted this