Thursday, July 23, 2009
I cannot over. emphasize. my. love. of. the. Trace. Command (ok, maybe I can overemphasize it)
Seriously though, when it comes to debugging my AS3 code, trace() is invaluable!
For example, when trying to create different start buttons for mouse and keyboard controls I was trying to send navigation events, and changing variables, creating variables... sometimes, at first I wasn't sure if the code I implemented worked so I used trace to spit out some information into the 'output' tab. (It's down between 'Properties' and 'Compiler Errors')
Here's how you use it:
Easy Peasy Lemon Squeezy!