Skip to main content
May 15, 2007
Answered

redirect trace() output to a text box

  • May 15, 2007
  • 4 replies
  • 1088 views
I have a flash app that works fine in local testing, but fails to load dynamic data when live on a site if I use the javascript method to get around the "click to activate issue"

What I would like to do is to direct all the trace output to a textbox so I can test it in situ. Is this possible in AS2? I know there is the import flash.util.trace for AS3, but I use XP64 so AS3 won't install as it tells me I dont have XP.

I am basically looking for an onTrace type event. I know it's a long shot :)

many thanks,
ben.
This topic has been closed for replies.
Correct answer Greg Dove
Try using firefox with the flashTracer plugin from Alessandro Crugnola

https://addons.mozilla.org/en-US/firefox/addon/3469

4 replies

May 15, 2007
Thanks for your super speedy responses guys! I thought I was clutching at straws, but the firefox plugin is exactly what I needed. The error turned out to be me being stupid.

Thanks for the help
Inspiring
May 15, 2007
Or another alternative is the xray tool ( I think I found it at osflash.org). It works using a localconnection created by a separate component you drop into your application, coupled with the xray tool running separately in a browser or standalone.
May 15, 2007
Either that if you're locked down to IE or pre flash 9 debug plugin make a global trace function which you call instead of normal trace

i.e.
_global.TraceOut=function(trace_str:String)
{
_root.traceOut_txt.text =trace_str+newline;
trace(trace_str);
}
TraceOut("jaskfj");
Greg DoveCorrect answer
Inspiring
May 15, 2007
Try using firefox with the flashTracer plugin from Alessandro Crugnola

https://addons.mozilla.org/en-US/firefox/addon/3469