Created
November 17, 2011 10:56
-
-
Save bastman/1372905 to your computer and use it in GitHub Desktop.
as3 firelog - firebug logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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