http://acmewebworks.typepad.com/admintool/2005/04/admintool_conne.html
You can use the AdminTool's logger window in 2 ways ():
1. in Flashout, go to the "Additionals" tab and type in "-trace _global.tt". This will have all of MTASC's TRACE statements sent to the admintool's logger, but not to the flashout's log window
2. in your Flashout.as class, add this to each of the log methods:
_global.tt.apply(_global, arguments);
#2 keeps the logging going to both output windows. This can be nice in that Flashout's window dresses up the output where as the Admintool just shows you straigt text.
The VERY cool thing about this is that MTASC does a great job in passing all of the arguments to the admintool logger, which allowes the admintool logger to recurse any objects that are sent to it - the way I usually like to see my objects when I trace them out ;)
I'm including a screenshot of a test I just did where I used method #1 (I agree, I can't stand tabbing back and forth to see the logging in flashout).
http://johngrden.blitzds.com/images/mtasc_trace_admintool.jpg
This was the line I used, which is comma separated arguments (YEAH! I hate typing in separaters for string tracing, that's sooo Flash.trace):
TRACE("FPSMeter exists?", _global.com.acmewebworks.util.fpsMeter);
And the output in the AdminTool:
(91) FPSMeter exists?:
_pollInterval = 25
_modus = true
_runFPS = false
population = undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined
populationSize = 10
delta = 0
pass = 0
_fps =
now = 0
past = 0
dispatchQueue = [type Function]
dispatchEvent = [type Function]
removeEventListener = [type Function]
addEventListener = [type Function]
com.blitzagency.xray.util.XrayLoader::onLoadInit :: D:local_DEV_Source_connectorConnectorOnlyclasses/com/acmewebworks/util/ATLoader.as :: 112
Which I have to say is OUTSTANDING!!! I hadn't realized that that's what MTASC was handing back: path to class, and line number - MAN I love that.
NICE work Nicolas, very very cool
On 8/10/05, Christophe Herreman <[EMAIL PROTECTED]> wrote:
Hi guys,
does anyone know if it is possible to have the logger and the swf
preview pane open at the same time? It's such a pain to debug now since
you have to switch between the 2 constantly. Or maybe there is a better
way to catch the TRACE statements. I haven't been able to keep up with
the list in the last couple of weeks and might have missed some
important things.
Any help is much appreciated, thx.
regards,
Christophe
****************************
http://www.herrodius.com
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
--
John Grden - Blitz
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
