If you're using a raw NetConnection, then... no, not natively from the client. There are third party tools out there that sniffing AMF over HTTP traffic.
 
However, I'd first try using some of the utilities that Flex has to dumping an object graph to a string:
 
import mx.utils.ObjectUtil;
 
...
 
    trace(ObjectUtil.toString(result));
 
 
If you were using FDS channels and messaging then you could take advantage of the mx.logging framework by creating a trace target to dump the traffic out to the flashlog.txt file. A simple way to do this is to add
 
    <mx:TraceTarget level="0" />
 
to your MXML to see everything that was logged... however if you want to filter this information you'll need to read up on the ASDoc on logging targets and use some script to customize the information being displayed.
 
FWIW, NetConnection Debugger relied on some mix-ins in your app that intercepted trace calls to an underlying NetConnection and then broadcast this information on a local connection to the NCD... Flex 2 has moved beyond this architecture and now uses a messaging framework and a logging API that decouples how a request is made from the service being contacted. I would love to see people in the community writing their own implementations of mx.messaging.Channel or perhaps a simple mx.logging.ILoggingTarget that reported info back to the old NCD!
 
Pete
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Phil Marston
Sent: Tuesday, June 06, 2006 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Net.Connection debugger - Is there something like it in Flex2?

or any other way of seeing what's being sent to AMFPHP and coming back?

Cheers,

Phil

--
__________________________________________________________
Phil Marston
Learning Technologist
Learning Technology Unit
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED]ac.uk Tel: +44(0)1224 273329 / +44(0)7798 723660
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__________________________________________________________

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]ac.uk
or call 0800 027 1495

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to