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_2.as next >
Text File  |  2005-12-05  |  2KB  |  66 lines

  1. _global.setBuyNowData = function(obj)
  2. {
  3.    pShopper_mc._visible = true;
  4.    pShopper_mc.gotoAndStop("order");
  5.    pShopper_mc.descVar = "";
  6.    pShopper_mc.catNumVar = "";
  7.    pShopper_mc.quantityVar = "";
  8.    pShopper_mc.priceVar = "";
  9.    pShopper_mc.colourVar = "";
  10.    pShopper_mc.sizeVar = "";
  11.    pShopper_mc.adInfoVar = "";
  12.    pShopper_mc.pageNumVar = "";
  13.    pShopper_mc.descriptionVar = "";
  14.    for(var _loc5_ in obj)
  15.    {
  16.       if(typeof obj[_loc5_] == "object")
  17.       {
  18.          if(typeof obj[_loc5_].length == "number")
  19.          {
  20.             arguments.callee(obj[_loc5_],arguments[1] + _loc5_ + "[","]");
  21.          }
  22.          else
  23.          {
  24.             arguments.callee(obj[_loc5_],arguments[1] + _loc5_ + ".");
  25.          }
  26.       }
  27.       else
  28.       {
  29.          if(obj[_loc5_] == undefined)
  30.          {
  31.             obj[_loc5_] = "";
  32.          }
  33.          if(_loc5_ == "skuVal")
  34.          {
  35.             var _loc3_ = obj[_loc5_];
  36.             var _loc4_ = _loc3_.substring(_loc3_.length - 2);
  37.             if(_loc4_ == 24)
  38.             {
  39.                _loc3_ = _loc3_.slice(0,-2);
  40.             }
  41.             pShopper_mc.catNumVar = _loc3_;
  42.          }
  43.          else if(_loc5_ == "priceVal")
  44.          {
  45.             pShopper_mc.priceVar = obj[_loc5_];
  46.          }
  47.          else if(_loc5_ == "colourVal")
  48.          {
  49.             pShopper_mc.colourVar = obj[_loc5_];
  50.          }
  51.          else if(_loc5_ == "sizeVal")
  52.          {
  53.             pShopper_mc.sizeVar = obj[_loc5_];
  54.          }
  55.          else if(_loc5_ == "adinfoVal")
  56.          {
  57.             pShopper_mc.adInfoVar = obj[_loc5_];
  58.          }
  59.          else if(_loc5_ == "pageVal")
  60.          {
  61.             pShopper_mc.pageNumVar = obj[_loc5_];
  62.          }
  63.       }
  64.    }
  65. };
  66.