This is G o o g l e's cache of http://acmewebworks.typepad.com/admintool/2005/01/admintooltrace.html as retrieved on 16 Jul 2005 23:22:09 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:WkQvZSAARnIJ:acmewebworks.typepad.com/admintool/2005/01/admintooltrace.html+site:acmewebworks.typepad.com&hl=en&client=firefox-a


Google is neither affiliated with the authors of this page nor responsible for its content.

AdminTool: AdminTool.trace()

« Win/Mac interface causes Flash IDE crash | Main | Sending data to the output panel »

AdminTool.trace()

Usage

_global.AdminTool.trace([obj], [ary], [str] etc...) : String

or

var degubInfo:String = _global.AdminTool.trace([obj], [ary], [str] etc...) : String

Parameters

You can send anything you want to the trace method (objects, arrays, properties etc)

Returns

String.  Returns the same data that is sent to the interface's output panel.  Anything sent to AdminTool.trace is automatically output to the window in the admintool.  If you want to use the trace information for other display purposes, initialize a property with the return string

Description

Method; you can send any object or property to AdminTool.trace to have it return a tabbed relational view of multidimensional objects.

Example

// create a multidimension array
var ary:Array = new Array
(
     {name:"John", age:35, reason:"mature game playing adult"},
     {name:"Ian", age:5, reason:"whines when he plays DC"},
     {name:"Ryan", age:"?", reason:"has yet to show up in DC"}
)

// send to AdminTool.trace()
_global.AdminTool.trace("what's my array got that I ain't got?", ary);

// output is a tabbed relational view

(495) what's my array got that I ain't got?:
     2 = [object Object]
         name = Ryan
         age = ?
         reason = has yet to show up in DC

     1 = [object Object]
         name = Mark
         age = 5
         reason = whines when he plays DC

     0 = [object Object]
         name = John
         age = 35
         reason = mature game playing adult

January 02, 2005 in Help | Permalink

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/1734981

Listed below are links to weblogs that reference AdminTool.trace():

Comments

Post a comment