<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/12/09/debugging-flex-applications-using-the-describetype-method-and-the-objectutil-class/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="traceObj(progressBar);" viewSourceURL="srcview/index.html">

    <mx:Script>
        <![CDATA[
            import mx.utils.ObjectUtil;

            private function traceObj(target:Object):void {
                textArea1.text = ObjectUtil.toString(target);
                textArea2.text = describeType(target).toXMLString();
            }
        ]]>
    </mx:Script>

    <mx:Form width="100%" height="100%">
        <mx:FormItem label="target:">
            <mx:ProgressBar id="progressBar"
                    labelPlacement="center"
                    indeterminate="true" />
        </mx:FormItem>
        <mx:FormItem label="ObjectUtil.toString(...):"
                width="100%"
                height="50%">
            <mx:TextArea id="textArea1"
                    editable="false"
                    width="100%"
                    height="100%" />
        </mx:FormItem>
        <mx:FormItem label="describeType.toXMLString(...):"
                width="100%"
                height="50%">
            <mx:TextArea id="textArea2"
                    editable="false"
                    width="100%"
                    height="100%" />
        </mx:FormItem>
    </mx:Form>

</mx:Application>

