Re: How do I debug actionscript in ming?

[email protected] (Wolfgang Hamann) Mon, 29 Dec 2003 13:04:01 +0100 (CET)
Newsgroups gmane.comp.web.ming.general
Message-ID <wolfgang-1031229130400.A0220900@loopback>
Hi David,

I usually set aside a text area with scroll buttons in my movie - if the text area has an
associated variable "log" I would add this code
function mytrace(x)
{ log += x + '\n';
  log.scroll = log.maxscroll;
}

Now wherever you would use trace(...) in flash, you can simply use _root.mytrace(...)
The definite advantage - you can do testing in circumstances where even the flash environment
fails (such as experiencing the multiple domain problem between localhost and 127.0.0.1)
I recall that on one occasion I added a send button to the text area to save all the debugging
output on the server

Wolfgang



In other words I have a feeling the _setName isn't successful or getting set for
the wrong level/kind of object.

The only real problem I have is I would like to debug the actionscript with ming
on a linux box but it's not evident.