Skip to content

Instantly share code, notes, and snippets.

@bastman
Created November 17, 2011 10:56
Show Gist options
  • Save bastman/1372905 to your computer and use it in GitHub Desktop.
Save bastman/1372905 to your computer and use it in GitHub Desktop.
as3 firelog - firebug logger
package com.basilicom.utils
{
import flash.external.ExternalInterface;
public class FireLog
{
public static function log(msg:String = null, data:* = null):void
{
try
{
var mashall = ExternalInterface.marshallExceptions;
ExternalInterface.marshallExceptions = true;
ExternalInterface.call("Basilicom.console.log", "FIRELOG: " + msg, data);
} catch (error)
{
}
ExternalInterface.marshallExceptions = mashall;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment