home *** CD-ROM | disk | FTP | other *** search
/ i·claim - visualizing argument / ICLAIM.ISO / pc / gloss.swf / scripts / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2005-02-26  |  3.2 KB  |  156 lines

  1. function setWords(w)
  2. {
  3.    if(_root.hil == w && _root.hic == "click")
  4.    {
  5.       _root.hil = "";
  6.       unsetWords();
  7.    }
  8.    else
  9.    {
  10.       _root.hil = w;
  11.       if(w == "a")
  12.       {
  13.          this.words._x = 50;
  14.          this.words.gotoAndStop("a0");
  15.       }
  16.       else if(w == "b")
  17.       {
  18.          this.words._x = 88;
  19.          this.words.gotoAndStop("b0");
  20.       }
  21.       else if(w == "c")
  22.       {
  23.          this.words._x = 124;
  24.          this.words.gotoAndStop("c0");
  25.       }
  26.       else if(w == "d")
  27.       {
  28.          this.words._x = 162;
  29.          this.words.gotoAndStop("d0");
  30.       }
  31.       else if(w == "e")
  32.       {
  33.          this.words._x = 200;
  34.          this.words.gotoAndStop("e0");
  35.       }
  36.       else if(w == "f")
  37.       {
  38.          this.words._x = 234;
  39.          this.words.gotoAndStop("f0");
  40.       }
  41.       else if(w == "g")
  42.       {
  43.          this.words._x = 269;
  44.          this.words.gotoAndStop("g0");
  45.       }
  46.       else if(w == "h")
  47.       {
  48.          this.words._x = 306;
  49.          this.words.gotoAndStop("h0");
  50.       }
  51.       else if(w == "i")
  52.       {
  53.          this.words._x = 339;
  54.          this.words.gotoAndStop("i0");
  55.       }
  56.       else if(w == "j")
  57.       {
  58.          this.words._x = -999;
  59.          this.words.gotoAndStop("j0");
  60.       }
  61.       else if(w == "k")
  62.       {
  63.          this.words._x = -999;
  64.          this.words.gotoAndStop("k0");
  65.       }
  66.       else if(w == "l")
  67.       {
  68.          this.words._x = 432;
  69.          this.words.gotoAndStop("l0");
  70.       }
  71.       else if(w == "m")
  72.       {
  73.          this.words._x = 467;
  74.          this.words.gotoAndStop("m0");
  75.       }
  76.       else if(w == "n")
  77.       {
  78.          this.words._x = 507;
  79.          this.words.gotoAndStop("n0");
  80.       }
  81.       else if(w == "o")
  82.       {
  83.          this.words._x = 548;
  84.          this.words.gotoAndStop("o0");
  85.       }
  86.       else if(w == "p")
  87.       {
  88.          this.words._x = 581;
  89.          this.words.gotoAndStop("p0");
  90.       }
  91.       else if(w == "q")
  92.       {
  93.          this.words._x = 622;
  94.          this.words.gotoAndStop("q0");
  95.       }
  96.       else if(w == "r")
  97.       {
  98.          this.words._x = 658;
  99.          this.words.gotoAndStop("r0");
  100.       }
  101.       else if(w == "s")
  102.       {
  103.          this.words._x = 688;
  104.          this.words.gotoAndStop("s0");
  105.       }
  106.       else if(w == "t")
  107.       {
  108.          this.words._x = 721;
  109.          this.words.gotoAndStop("t0");
  110.       }
  111.       else if(w == "u")
  112.       {
  113.          this.words._x = -999;
  114.          this.words.gotoAndStop("u0");
  115.       }
  116.       else if(w == "v")
  117.       {
  118.          this.words._x = 791;
  119.          this.words.gotoAndStop("v0");
  120.       }
  121.       else if(w == "w")
  122.       {
  123.          this.words._x = 831;
  124.          this.words.gotoAndStop("w0");
  125.       }
  126.    }
  127. }
  128. function unsetWords(w)
  129. {
  130.    if(_root.hil != w)
  131.    {
  132.       this.words._x = -500;
  133.       _root.hil = "";
  134.    }
  135. }
  136. function circRollOff(l)
  137. {
  138.    if(l == "a")
  139.    {
  140.       if(_root._ymouse <= 154 || _root._xmouse <= 49)
  141.       {
  142.          this.unsetWords("0");
  143.          this.azclip.gotoAndStop(1);
  144.       }
  145.    }
  146.    else if(l != "z")
  147.    {
  148.       if(_root._ymouse <= 154)
  149.       {
  150.          this.unsetWords("0");
  151.          this.azclip.gotoAndStop(1);
  152.       }
  153.    }
  154. }
  155. _root.hic = "";
  156.