Details

SWF-Console

Date
2008-09-12
Context
Downloads
Link
http://github.com/wiederkehr/swf-console
Topics
Comments
Be the first to comment


Description

The swf-console helps you to output information about an object. It displays a small textfield utility with basic functionalities. Scroll, drag & drop and resize to be exact. It delivers two API methods to output data. It is intended to be used when you haven’t the native trace-window available (in-browser developement for example).

The console uses the analyze() function which is also available as the var_dump for AS3 snippet

Installation

  1. Import the package
    import console.Console;

  2. Create the console
    private var console:Console = new Console(this);

  3. Add the console to the DisplayObjectContainer
    this.addChild(console);

  4. Call one of the api methods in your code
    console.analyze(this);
    console.print(this);

  5. Display the console by pressing the space-bar
    customize this interaction by changing the key-code at Console.as #249

Download

The project is hosted on gitHub – feel free to participate and help improve the code or just let me hear your thoughts.
Download the SWF-Console ZIP here.

Leave a Reply