home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************
- ADOBE SYSTEMS INCORPORATED
- Copyright 2001 Adobe Systems Incorporated
- All Rights Reserved
-
- NOTICE: Adobe permits you to use, modify, and distribute this
- file in accordance with the terms of the Adobe license agreement
- accompanying it. If you have received this file from a source
- other than Adobe, then your use, modification, or distribution
- of it requires the prior written permission of Adobe.
- ***************************************************************/
- /***************************************************************
- Author: Mary Obelnicki
- ***************************************************************/
-
- /***************************************************************
- Description goes here
-
- ***************************************************************/
-
- /***************************************************************
- To change the behavior of this script,
- make your changes below
- ***************************************************************/
-
- DumpProperties(this);
-
- /***************************************************************
- DO NOT EDIT BELOW THIS LINE
- ***************************************************************/
-
-
-
- function DumpProperties(anObject)
- {
- var ret = "\r\n";
-
- ret += anObject + " typeof: " + typeof(anObject) + "\r\n";
- ret += DumpContainedProperties(1, anObject);
-
- return ret;
- }
-
- function DumpContainedProperties(indentLevel, anObject)
- {
- var ret = "";
- for (aProperty in anObject)
- {
- var i=0;
- while (i < indentLevel)
- {
- ret += " ";
- ++i;
- }
-
- ret += aProperty;
-
- var typeName = typeof(anObject[aProperty]);
- ret += " (typeof: " + typeof(anObject[aProperty]) + ")";
- if (typeName != "function")
- {
- ret += ": ";
-
- try
- {
- ret += anObject[aProperty];
- }
- catch (theError)
- {
- ret += "<no toString defined>";
- }
- }
-
- ret += "\r\n";
-
- if (typeName == "object")
- {
- ret += DumpContainedProperties(indentLevel+1, anObject[aProperty]);
- }
- }
-
- return ret;
- }