home *** CD-ROM | disk | FTP | other *** search
/ Sears Catalog 2006 Spring/Summer (French Canadian) / SearsCanada-AutomneEte2006-FrenchVersion-WinMac.bin / fr / main.swf / scripts / frame_3 / DoAction.as
Text File  |  2005-12-05  |  1KB  |  46 lines

  1. function bookOff(type)
  2. {
  3.    trace("FROM BOOK OFF FUNCTION type = " + type);
  4.    state = type;
  5.    switch(type)
  6.    {
  7.       case "content":
  8.          sectionClip.gotoAndStop("off");
  9.          instruction_MC.gotoAndStop(3);
  10.          this.hideSectionMc._visible = true;
  11.          break;
  12.       case "section":
  13.          sectionClip.gotoAndStop("off");
  14.          this.hideSectionMc._visible = false;
  15.          break;
  16.       case "lrg":
  17.          sectionClip.gotoAndStop("lrgOff");
  18.          break;
  19.       default:
  20.          trace("no case tested true");
  21.    }
  22. }
  23. function bookOn(type)
  24. {
  25.    trace("FROM BOOK ON FUNCTION type = " + type);
  26.    state = type;
  27.    switch(type)
  28.    {
  29.       case "content":
  30.          sectionClip.gotoAndStop("off");
  31.          this.hideSectionMc._visible = true;
  32.          break;
  33.       case "section":
  34.          sectionClip.gotoAndStop("stay");
  35.          instruction_MC.gotoAndStop(2);
  36.          this.hideSectionMc._visible = false;
  37.          break;
  38.       case "lrg":
  39.          sectionClip.gotoAndStop("lrg");
  40.          break;
  41.       default:
  42.          trace("no case tested true");
  43.    }
  44. }
  45. state = "section";
  46.