
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
-
Import the package
import console.Console; -
Create the console
private var console:Console = new Console(this); -
Add the console to the DisplayObjectContainer
this.addChild(console); -
Call one of the api methods in your code
console.analyze(this);
console.print(this); -
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