Archive for April, 2011|Monthly archive page

FDT 4 – How to auto-generate a trace() command

I only just discovered this incredibly useful shortcut in FDT. I imagine that knowing this will buy me an extra week or two of life time as I don’t have to type out trace() anymore!

Simply put the cursor over the object you want to trace and press Cmd-0 (on a Mac). FDT will then generate the trace statement for you. For instance, in the below statement, if I put the cursor on the width property of the _questionBoxStyle object and press Cmd-0, the following will happen:-

_questionBoxStyle.width = _questionBoxWidth;
trace('_questionBoxStyle.width: ' + (_questionBoxStyle.width));