I might have a look at that one day when I have some time on my hands ....
but meanwhile i currently have this project entirely in actionscript and it'd be so very helpful if I could quickly add trace capabilities to it to make debugging slightly easier now that i'm not using the IDE..
thnx
if you find some of my ideas weird, look at my avatar for the reason
this might be an alternative: I usually replace all trace() calls by _root.mytrace() [if you can #define that, it certainly helps]
The mytrace function uses localconnection to send to a second browser window. The process is somewhat slow (adding lots of text to a scrolling text field in flash compared to adding the text to a native window or a file)
It might be helpful to add a button to the trace window that sends the textfield contents to a file on the server
I cannot open your fla, only look inside the swf. You are using theText as an instance name where I used log as a variable name. So the code should change to
and i've managed to create this nice little trace window
(unfortunately the code it uses is from my aforementioned project, and it's fairly messy code, but it seems to work )
if you find some of my ideas weird, look at my avatar for the reason
my problem is though, that I want to make it slightly better in that when I call the trace function, I can also set a particular colour for the next line of text.
So I'm wondering if it's possible for a text field to hold different coloured lines of text ?
the code in question is in ui/windows.as (after following that link above) lines 240-246
code:
if (colour != undefined)
{
logger += "***** I want the next line of text to be of the colour : " + colour + "\n";
}
logger += text + "\n";
container.canvas.tracer.tracer_txt.text = logger;
addItem ("scroller");
...
thnx
Last edited by delfick; 01-05-2008 at 11:29 AM.
if you find some of my ideas weird, look at my avatar for the reason