Home > Dev > Alcon – ActionScript Logging Console

Alcon – ActionScript Logging Console

Alcon is a lightweight external output console for Flash ActionScript that allows developers to view debugging information without relying on the Flash IDE. SWF files can be debugged and monitored no matter if they are in the web browser, Flash Player or a standalone executable. While that Alcon tries to keep inclusion into projects as simple as possible. In fact all that needs to be done is importing the Debug class into a project and you are ready to send debug information to the console with a simple Debug.trace() command.
Included into a project Alcon keeps a small footprint and takes less than a Kilobyte of filesize while still offering some other helpful features.

Categories: Dev Tags: , ,
  1. June 9th, 2006 at 23:26 | #1

    I decided to use Alcon in my Flex app, because I wanted an external tool for capturing log messages, but in a way that didn’t make the logging mandatory or require fancy setup. Your tool is great, but I have had a problem: if Alcon isn’t running, I get StatusEvent errors.

    So I found a way to fix it, by creating a new class, and using it in place of LocalConnection in your static trace() method:

    package net.hiddenresource.util.debug
    import flash.net.LocalConnection;
    import flash.events.*;

    dynamic public class DynamicLocalConnection extends LocalConnection

    public function DynamicLocalConnection() {
    addEventListener(StatusEvent.STATUS, statusEventHandler);

    private function statusEventHandler(event:StatusEvent):void {
    ;//trace(“statusEventHandler: ” event);

    Adding this, it works great whether Alcon is listening or not.

    (if this comes out garbled, send me an email and I’ll send you the code a different way)

  2. June 9th, 2006 at 23:48 | #2

    Hi John, I haven’t really tested Alcon yet with AS3.0. How do you use the Debug class which is written in AS2 in a AS3 Flex project?
    Either way thanks for pointing this out. I think I will add full support for AS3 once the final Flex2/Player9.0 is out.

  3. June 10th, 2006 at 00:23 | #3

    I don’t remember exactly what I did to change the Alcon code, but it was, relatively speaking, trivial to port to ActionScript 3. I think I basically had to define a bunch of return types to functions.

    If you want, I’ll send you the full code package for your reuse.

  4. June 11th, 2006 at 22:11 | #4

    Hey John, it would be definitely cool if you send me your modified debug package! My email can be found in the readme file that comes with Alcon.

  1. No trackbacks yet.
You must be logged in to post a comment.