I'm surprised there's no quick-n-dirty trace wrapper function.  Something like:
```ActionScript
public function DEBUG_TRACE(doTrace:Boolean, mesg:String):void
{
	if (doTrace) trace(mesg);
}
```