PDA

View Full Version : Trace to external .Text File


ryan.m
02-29-2008, 06:56 PM
I need some help. I'm having trouble simulating some calls back and forth at live runtime. I know you can debug through the live flash environment, but Is it possible to send trace() statemnts from the main flash.swf file to an outside text file(like wpd. or .txt file). For example if you use trace() statements you can see the statements in the "output window". Could you send those same statements to a stored text? I think this is possible, but I'm not sure how to do it. Any help would be great

xxneon
02-29-2008, 07:01 PM
you basically would have to replace trace with a custom function that would push the value to a serverside script and then have the serverside script append the value to the desired text file.

ryan.m
02-29-2008, 07:04 PM
how would I go about doing that?? can you develop all of this using as2??

CyanBlue
02-29-2008, 07:14 PM
If this is strictly debugging purpose, check out the Xray...
http://www.osflash.org/xray

xxneon
02-29-2008, 07:24 PM
for my idea you would need something like php.. cause flash on its own does not support writing to files..

ryan.m
02-29-2008, 07:30 PM
I see!!!Thanks for the help. Im going to try the xray veiwer and look in to the php. It would be nice if flash itself could write to another file. Oh well!!!

xxneon
02-29-2008, 08:13 PM
if you use a 3rd party projector like zinc .. then you can. :)

CyanBlue
03-03-2008, 01:23 PM
Yeah... That'll make a Flash a perfect tool to bog up the user's computer with the garbage files perhaps overwrite the important files... ;)

xxneon
03-03-2008, 01:24 PM
A tool is only as good as you know how to use it ;)