GetByIntuition()

Icon

General scripting malarky.

Debug colourisation in flash develop

You can colourise your output text in flash develop by prefixing your trace string with “n:”
By default:

0: is gray
1: is black
2: is orange
3: is red
4: is pink

Here is the result of the following:

for ( var debug: int = 0 ; debug < 20 ; debug++) {
     trace(debug+ ": debug " + debug);
}

Handy when you have a lot of traces and need to debug.

Bookmark and Share

Category: Handy Flash, Scripts

Tagged: ,

One Response

  1. [...] that you’ll soon wonder how you lived without. Even small touches such as the ability to colourise the Output panel turn out to be very handy. If you’re still programming in the Flash IDE, grab it now. It [...]

Leave a Reply