Another alternative is to do this: if (!debug) _global.tt = null;
or if (debug) { _global.out = function(m) { NetDebug.trace(m); _global.tt(m); } } And use out() as your trace method which universally works in the IDE, with the RemotingConnection Debugger, and with Xray. BLITZ | Steven Sacks - 310-551-0200 x209 _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com