View Full Version : trace AS3 live
neves
September 12th, 2007, 06:46 PM
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?
_dfm_
September 12th, 2007, 07:57 PM
https://addons.mozilla.org/en-US/firefox/addon/3469
it have, but have some problem with it
Great but...
by celldrifter on April 16, 2007 (rated 9)
Only seems to work with Flash Player 9.0.16.0 Debug & nothing later.
vladibo
September 12th, 2007, 11:27 PM
or http://blog.bodurov.com/Post.aspx?postID=13
rjewson
September 13th, 2007, 04:17 AM
Use the log file
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=logging_125_04.html
McGuffin
September 13th, 2007, 07:58 AM
If you're using Mac OS X, open Terminal and type:
tail -f ~/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt
This will add in your traces from the flashlog.txt file as they happen. You need to be running the Debug version of Flash Player, as well as having compiled your SWF (if you're using Flex/Flex SDK) to allow debugging. (compiler command is -debug=true if I remember).
I also use the Visor plugin for Terminal, which lets me have a game-like dropdown terminal window that I can get when I press my scrollbutton down on my mouse. Badass!
Here (http://docs.blacktree.com/visor/visor)
soulwire
September 13th, 2007, 05:30 PM
Ha, turn one of these puppies on and see what other developers are tracing!
If they are anything like me, their movies will be full of trace('The client can suck my balls'), trace('there are ' + i + ' seconds left until I plunge a dagger into my leg), trace('Why the arse tickling twats isnt ' + theMovieClip + 'showing up FFS!')
Very unprofessional I know!
senocular
September 15th, 2007, 06:35 PM
https://addons.mozilla.org/en-US/firefox/addon/3469
it have, but have some problem with it
Just FYI, as a security precaution, in Flash Player 9, the log file for traces from the player (remember, this is debug only) are stored in a set location. For Windows this is:
C:\Documents and Settings\<user>\Application Data\Macromedia\Flash Player\Logs\flashlog.txt
(and respective path on Mac, etc)
You would have to adjust the options/settings of Flash Tracer to instead point to that file and it will work. It worked before when it could use a custom location (My Documents) but because of the change, it had essentially broke with FP9.
marcusJones
May 12th, 2008, 02:04 PM
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.
Jerryscript
May 12th, 2008, 06:42 PM
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.
congyaan
May 13th, 2008, 12:32 AM
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
Jerryscript
May 13th, 2008, 09:16 AM
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
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.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.