# Trace AS3 live

**URL:** <https://forum.kirupa.com/t/trace-as3-live/238596>\
**Category:** Uncategorized\
**Created:** [September 12, 2007, 10:46pm UTC](https://forum.kirupa.com/t/trace-as3-live/238596 "2007-09-12T22:46:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neves](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/neves/32/3691_2.png) [@neves](https://forum.kirupa.com/u/neves)\
**Post date:** [September 12, 2007, 10:46pm UTC](https://forum.kirupa.com/t/trace-as3-live/238596/1 "2007-09-12T22:46:58Z")

</div>

Hi,

What software are you people using to trace messages when the swf is running online inside browser? I know and even used on the past some softwares, but I need one that works with AS3.

I heard something about one that works with firebug. But I need one that don´t need a browser. One that works with a standalone swf.

Other question:  
Is it possible to use the trace method from AS3 to log to an external software?

---

<div class="post-metadata">

**Author:** ![marcusJones](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@marcusJones](https://forum.kirupa.com/u/marcusJones)\
**Post date:** [May 12, 2008, 6:04pm UTC](https://forum.kirupa.com/t/trace-as3-live/238596/2 "2008-05-12T18:04:51Z")

</div>

Has anyone been able to get this to work on a Mac? I’m running debugger version of Flash Player 9 r.115. I have never been able to get this to work on either one of my machines. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Jerryscript](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jerryscript/32/451_2.png) [@Jerryscript](https://forum.kirupa.com/u/Jerryscript)\
**Post date:** [May 12, 2008, 10:42pm UTC](https://forum.kirupa.com/t/trace-as3-live/238596/3 "2008-05-12T22:42:23Z")

</div>

Another trace option is to use a seperate swf file and localConnection(). This is a trick Musicman from FlashKit shared in the server side forum in response to a query on how to trace using Ming which has no IDE. Simply pass the string you want to trace to the localConnection and receive and display the string in your second swf file. It’s a hack, but it works.

---

<div class="post-metadata">

**Author:** ![congyaan](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@congyaan](https://forum.kirupa.com/u/congyaan)\
**Post date:** [May 13, 2008, 4:32am UTC](https://forum.kirupa.com/t/trace-as3-live/238596/4 "2008-05-13T04:32:43Z")

</div>

I think there is another way to trace message on line,  
you can put a textField on the root,and create a function  
public function myTrace(msg:String):void  
{  
root.txtField.text += msg+newline;  
}  
then if you finish the program then you can empty the function

---

<div class="post-metadata">

**Author:** ![Jerryscript](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jerryscript/32/451_2.png) [@Jerryscript](https://forum.kirupa.com/u/Jerryscript)\
**Post date:** [May 13, 2008, 1:16pm UTC](https://forum.kirupa.com/t/trace-as3-live/238596/5 "2008-05-13T13:16:07Z")

</div>

[QUOTE=congyaan;2325397]I think there is another way to trace message on line,  
you can put a textField on the root,and create a function  
public function myTrace(msg:String):void  
{  
root.txtField.text += msg+newline;  
}  
then if you finish the program then you can empty the function[/QUOTE]  
While debugging, you may have a problem with code that hangs the player, preventing the screen from being updated with your myTrace info. Sending the data to a seperate swf via localConnection happens instantly, not on screen refresh, so your data will show up regardless.
