Skip to content

Instantly share code, notes, and snippets.

@bastman
Created November 17, 2011 10:56

Revisions

  1. bastman renamed this gist Nov 17, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. bastman created this gist Nov 17, 2011.
    26 changes: 26 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    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;
    }

    }

    }