home *** CD-ROM | disk | FTP | other *** search
/ Sears Catalog 2006 Spring/Summer (French Canadian) / SearsCanada-AutomneEte2006-FrenchVersion-WinMac.bin / fr / main.swf / scripts / frame_1 / DoAction.as < prev   
Text File  |  2005-12-05  |  665b  |  24 lines

  1. _global.traceObject = function(obj)
  2. {
  3.    for(var _loc3_ in obj)
  4.    {
  5.       if(typeof obj[_loc3_] == "object")
  6.       {
  7.          if(typeof obj[_loc3_].length == "number")
  8.          {
  9.             trace(arguments[1] + _loc3_ + " : array.length = " + obj[_loc3_].length);
  10.             arguments.callee(obj[_loc3_],arguments[1] + _loc3_ + "[","]");
  11.          }
  12.          else
  13.          {
  14.             trace(arguments[1] + _loc3_ + " = " + obj[_loc3_]);
  15.             arguments.callee(obj[_loc3_],arguments[1] + _loc3_ + ".");
  16.          }
  17.       }
  18.       else
  19.       {
  20.          trace(arguments[1] + _loc3_ + arguments[2] + " = " + obj[_loc3_]);
  21.       }
  22.    }
  23. };
  24.