Alongside external tools, I actually include an output pane that debugs my
responses so that I can see exactly what Flex reads. It's a simple solution
that could be expanded upon, but it gets the job done.

Example:

[FILENAME:AMFDUMP]
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
width="614" height="300" close="PopUpManager.removePopUp(this);" title="AMF
Dump" showCloseButton="true">
        <mx:Script>
        <![CDATA[
                import mx.controls.Alert;
            import mx.managers.PopUpManager;       
                import mx.utils.ObjectUtil;
                
            public var mainApp:Object;
            
                        public function dump(target:Object):void
                        {
                                var dump:String =
ObjectUtil.toString(target);
                                dump_txt.text = dump;
                        }
                        public function message(html:String):void
                        {
                                dump_txt.htmlText = html;
                        }
         ]]>
    </mx:Script>
        <mx:TextArea x="10" y="10" width="100%" height="100%" id="dump_txt"
htmlText="-AMF DUMP-" wordWrap="true" editable="true"/>
</mx:TitleWindow>

I use a function located in the Application file so that it's accessible
from anywhere. ex. Application.application.dumpObject(obj);

public function dumpObject ( r:Object ) : void
{
        AMFWindow = AMFDump(PopUpManager.createPopUp(this, AMFDump, true));
        AMFWindow.dump(r);
      PopUpManager.centerPopUp(AMFWindow);
}

!k


-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 14, 2008 10:43 AM
To: CF-Talk
Subject: OT: Free HTTP traffic monitor? Anyone know of one?

As I'm getting into building AIR apps, it would be great if I had an HTTP
traffic monitor which also showed the headers, requests, and responses from
HTTP request that my apps make.

Does anyone know of one they'd recommend? Free would be best, but I'd
entertain a priced one if it was good quality. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301302
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to