home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / back_to_work.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  15.9 KB  |  739 lines

  1. function init()
  2. {
  3.    bgnum = random(5) + 1;
  4.    hitnum = 0;
  5.    swnum = 1;
  6.    name = id;
  7.    womannum = 0;
  8.    womanposinit = 510;
  9.    womanypos = 280;
  10.    showwomannum = 4;
  11.    showaction = [];
  12.    swomanarr = [];
  13.    var k = 1;
  14.    while(k <= showwomannum)
  15.    {
  16.       this["cloth" + k] = [];
  17.       this["xcloth" + k] = [];
  18.       this["ycloth" + k] = [];
  19.       this["depcloth" + k] = [];
  20.       this["i_cloth" + k] = [];
  21.       this["i_xcloth" + k] = [];
  22.       this["i_ycloth" + k] = [];
  23.       this["i_depcloth" + k] = [];
  24.       k++;
  25.    }
  26. }
  27. function sndattach(sndname)
  28. {
  29.    snd = new Sound();
  30.    snd.attachSound(sndname);
  31.    snd.start();
  32. }
  33. function clothposinit()
  34. {
  35.    xclothinit = [];
  36.    yclothinit = [];
  37.    depclothinit = [];
  38.    var k = 1;
  39.    while(k <= clothnum)
  40.    {
  41.       if(k < 10)
  42.       {
  43.          cnt = "0" + k;
  44.       }
  45.       else
  46.       {
  47.          cnt = k;
  48.       }
  49.       xclothinit[k] = eval("cloth_" + cnt)._x;
  50.       yclothinit[k] = eval("cloth_" + cnt)._y;
  51.       depclothinit[k] = this["cloth_" + cnt].getDepth();
  52.       k++;
  53.    }
  54. }
  55. function clothinit()
  56. {
  57.    var k = 1;
  58.    while(k <= clothnum)
  59.    {
  60.       if(k < 10)
  61.       {
  62.          cnt = "0" + k;
  63.       }
  64.       else
  65.       {
  66.          cnt = k;
  67.       }
  68.       this["cloth_" + cnt].clicknum = 0;
  69.       this["cloth_" + cnt]._x = xclothinit[k];
  70.       this["cloth_" + cnt]._y = yclothinit[k];
  71.       this["cloth_" + cnt].swapDepths(depclothinit[k] + 5000);
  72.       k++;
  73.    }
  74.    womanx = woman._x;
  75.    womany = woman._y;
  76. }
  77. function hitwoman()
  78. {
  79.    womannum++;
  80.    hitnum = 0;
  81.    var k = 1;
  82.    while(k <= clothnum)
  83.    {
  84.       if(k < 10)
  85.       {
  86.          k = "0" + k;
  87.       }
  88.       clothnm = "cloth_" + k;
  89.       if(woman.hitTest(eval(clothnm)) and eval(clothnm).clicknum == 1)
  90.       {
  91.          hitnum++;
  92.          eval("cloth" + womannum)[hitnum] = clothnm;
  93.          pt = new Object();
  94.          pt.x = eval(clothnm)._x;
  95.          pt.y = eval(clothnm)._y;
  96.          woman.globalToLocal(pt);
  97.          eval("xcloth" + womannum)[hitnum] = pt.x;
  98.          eval("ycloth" + womannum)[hitnum] = pt.y;
  99.          eval("depcloth" + womannum)[hitnum] = eval(clothnm).depth;
  100.       }
  101.       k++;
  102.    }
  103.    clothinit();
  104. }
  105. function poscloth()
  106. {
  107.    womanpos = womanposinit - (womannum - 1) * 75;
  108.    var k = 1;
  109.    while(k <= womannum)
  110.    {
  111.       attachMovie("woman","swoman" + k,k - 10);
  112.       var j = 1;
  113.       while(j <= eval("cloth" + k).length)
  114.       {
  115.          this["swoman" + k].attachMovie(eval("cloth" + k)[j],eval("cloth" + k)[j],eval("depcloth" + k)[j]);
  116.          this["swoman" + k][eval("cloth" + k)[j]]._x = eval("xcloth" + k)[j];
  117.          this["swoman" + k][eval("cloth" + k)[j]]._y = eval("ycloth" + k)[j];
  118.          j++;
  119.       }
  120.       setProperty("swoman" + k, _X, womanpos + k * 150);
  121.       setProperty("swoman" + k, _Y, womanypos);
  122.       setProperty("swoman" + k, _xscale, showscale);
  123.       setProperty("swoman" + k, _yscale, showscale);
  124.       swomandrag("swoman" + k);
  125.       k++;
  126.    }
  127.    k = 1;
  128.    while(k <= clothnum)
  129.    {
  130.       if(k < 10)
  131.       {
  132.          k = "0" + k;
  133.       }
  134.       this["cloth_" + k]._y -= 800;
  135.       k++;
  136.    }
  137.    womanshow(1);
  138. }
  139. function attachbtn()
  140. {
  141.    womanpos = womanposinit - (womannum - 1) * 75;
  142.    var k = 1;
  143.    while(k <= womannum)
  144.    {
  145.       attachMovie("actioncomp","actionbtn" + k,k - 25);
  146.       attachMovie("delbtn_mc","delbtn" + k,k - 20);
  147.       setProperty("delbtn" + k, _X, womanpos + k * 150);
  148.       setProperty("delbtn" + k, _Y, 530);
  149.       this["delbtn" + k].num = k;
  150.       setProperty("actionbtn" + k, _X, womanpos + k * 150);
  151.       setProperty("actionbtn" + k, _Y, 500);
  152.       this["actionbtn" + k].num = k;
  153.       k++;
  154.    }
  155. }
  156. function swomandrag(mvname)
  157. {
  158.    this[mvname].onPress = function()
  159.    {
  160.       this.startDrag("");
  161.    };
  162.    this[mvname].onRelease = function()
  163.    {
  164.       this.stopDrag();
  165.       if(womannum == 1)
  166.       {
  167.          swoman1._x = womanposinit + 150;
  168.          swoman1._y = womanypos;
  169.       }
  170.       if(womannum >= 2)
  171.       {
  172.          _root.reposition();
  173.       }
  174.    };
  175. }
  176. function reposition()
  177. {
  178.    var k = 1;
  179.    while(k <= womannum)
  180.    {
  181.       swomanarr[k] = "swoman" + k;
  182.       k++;
  183.    }
  184.    k = womannum;
  185.    while(k >= 1)
  186.    {
  187.       maxwoman = choosemax(k);
  188.       this[maxwoman].order = k;
  189.       k--;
  190.    }
  191.    k = 1;
  192.    while(k <= womannum)
  193.    {
  194.       this["swoman" + k]._name = "sw" + k;
  195.       this["i_cloth" + k] = eval("cloth" + k);
  196.       this["i_xcloth" + k] = eval("xcloth" + k);
  197.       this["i_ycloth" + k] = eval("ycloth" + k);
  198.       this["i_depcloth" + k] = eval("depcloth" + k);
  199.       k++;
  200.    }
  201.    k = 1;
  202.    while(k <= womannum)
  203.    {
  204.       ordernum = this["sw" + k].order;
  205.       this["sw" + k].orinum = k;
  206.       this["sw" + k]._name = "swoman" + ordernum;
  207.       k++;
  208.    }
  209.    k = 1;
  210.    while(k <= womannum)
  211.    {
  212.       ordernum = this["swoman" + k].orinum;
  213.       this["cloth" + k] = eval("i_cloth" + ordernum);
  214.       this["xcloth" + k] = eval("i_xcloth" + ordernum);
  215.       this["ycloth" + k] = eval("i_ycloth" + ordernum);
  216.       this["depcloth" + k] = eval("i_depcloth" + ordernum);
  217.       k++;
  218.    }
  219.    k = 1;
  220.    while(k <= womannum)
  221.    {
  222.       setProperty("swoman" + k, _X, womanpos + k * 150);
  223.       setProperty("swoman" + k, _Y, womanypos);
  224.       k++;
  225.    }
  226.    womanshow(1);
  227. }
  228. function choosemax(lnum)
  229. {
  230.    maxval = -500;
  231.    var k = 1;
  232.    while(k <= lnum)
  233.    {
  234.       maxval = Math.max(eval(swomanarr[k])._x,maxval);
  235.       k++;
  236.    }
  237.    k = 1;
  238.    while(k <= lnum)
  239.    {
  240.       if(eval(swomanarr[k])._x == maxval)
  241.       {
  242.          returnval = swomanarr[k];
  243.          swomanarr.splice(k,1);
  244.          return returnval;
  245.       }
  246.       k++;
  247.    }
  248. }
  249. function removeswoman(dnum)
  250. {
  251.    removeMovieClip("actionbtn" + dnum);
  252.    var k = dnum;
  253.    while(k < womannum)
  254.    {
  255.       this["cloth" + k] = [];
  256.       this["xcloth" + k] = [];
  257.       this["ycloth" + k] = [];
  258.       this["depcloth" + k] = [];
  259.       var j = 1;
  260.       while(j < eval("cloth" + (k + 1)).length)
  261.       {
  262.          this["cloth" + k][j] = this["cloth" + (k + 1)][j];
  263.          this["xcloth" + k][j] = this["xcloth" + (k + 1)][j];
  264.          this["ycloth" + k][j] = this["ycloth" + (k + 1)][j];
  265.          this["depcloth" + k][j] = this["depcloth" + (k + 1)][j];
  266.          j++;
  267.       }
  268.       showaction[k] = showaction[k + 1];
  269.       k++;
  270.    }
  271.    this["cloth" + womannum] = [];
  272.    this["xcloth" + womannum] = [];
  273.    this["ycloth" + womannum] = [];
  274.    this["depcloth" + womannum] = [];
  275.    showaction.pop();
  276.    womannum--;
  277.    removeMovieClip("swoman" + dnum);
  278.    swnumbd.gotoAndPlay(2);
  279. }
  280. function womanshow(shownum)
  281. {
  282.    att_actionwoman(shownum);
  283.    0;
  284.    if(showaction[shownum] != undefined)
  285.    {
  286.       rndnum = showaction[shownum];
  287.       if(rndnum == 0)
  288.       {
  289.          rndnum = 9;
  290.       }
  291.    }
  292.    else
  293.    {
  294.       rndnum = 9;
  295.    }
  296.    showinit(rndnum);
  297.    mirror_mc.onEnterFrame = function()
  298.    {
  299.       if(show(rndnum) == 1)
  300.       {
  301.          shownum++;
  302.          if(shownum > womannum)
  303.          {
  304.             shownum = 1;
  305.          }
  306.          att_actionwoman(shownum);
  307.          0;
  308.          if(showaction[shownum] != undefined)
  309.          {
  310.             rndnum = showaction[shownum];
  311.             if(rndnum == 0)
  312.             {
  313.                rndnum = 9;
  314.             }
  315.          }
  316.          else
  317.          {
  318.             rndnum = 9;
  319.          }
  320.          showinit(rndnum);
  321.       }
  322.    };
  323. }
  324. function att_actionwoman(number)
  325. {
  326.    attachMovie("woman","shwoman",0);
  327.    var j = 1;
  328.    while(j <= eval("cloth" + number).length)
  329.    {
  330.       shwoman.attachMovie(eval("cloth" + number)[j],eval("cloth" + number)[j],eval("depcloth" + number)[j]);
  331.       shwoman[eval("cloth" + number)[j]]._x = eval("xcloth" + number)[j];
  332.       shwoman[eval("cloth" + number)[j]]._y = eval("ycloth" + number)[j];
  333.       j++;
  334.    }
  335.    shwoman._x = mirror_mc._x;
  336.    shwoman._y = mirror_mc._y;
  337.    setProperty("shwoman", _xscale, showscale);
  338.    setProperty("shwoman", _yscale, showscale);
  339.    shwoman.setMask(_root.mirror_mc);
  340. }
  341. function showinit(n)
  342. {
  343.    if(n == 1)
  344.    {
  345.       shwoman._xscale = 5;
  346.       shwoman._yscale = 5;
  347.    }
  348.    else if(n == 2)
  349.    {
  350.       shwoman._y -= 360;
  351.    }
  352.    else if(n == 3)
  353.    {
  354.       shwoman._y += 360;
  355.    }
  356.    else if(n == 4)
  357.    {
  358.       shwoman._x -= 180;
  359.    }
  360.    else if(n == 5)
  361.    {
  362.       shwoman._x += 180;
  363.    }
  364.    else if(n == 6)
  365.    {
  366.       shwoman._xscale = 1;
  367.       shwoman._yscale = 1;
  368.       shwoman._alpha = 5;
  369.       shwoman._rotation = 20;
  370.    }
  371.    else if(n == 7)
  372.    {
  373.       shwoman._alpha = 0;
  374.    }
  375.    else if(n == 8)
  376.    {
  377.       shwoman._xscale = showscale;
  378.       addnum = 8;
  379.    }
  380.    else if(n == 9)
  381.    {
  382.       shwoman._alpha = 80;
  383.    }
  384. }
  385. function show(n)
  386. {
  387.    if(stopsignnum == 1)
  388.    {
  389.       return 0;
  390.    }
  391.    if(n == 1)
  392.    {
  393.       if(shwoman._xscale < showscale)
  394.       {
  395.          shwoman._xscale += 5;
  396.          shwoman._yscale += 5;
  397.       }
  398.       else
  399.       {
  400.          shwoman._xscale = showscale;
  401.          shwoman._yscale = showscale;
  402.          shwoman._alpha += 5;
  403.       }
  404.       if(shwoman._alpha > 180)
  405.       {
  406.          return 1;
  407.       }
  408.    }
  409.    else if(n == 2)
  410.    {
  411.       if(shwoman._y < mirror_mc._y)
  412.       {
  413.          shwoman._y += 20;
  414.       }
  415.       else
  416.       {
  417.          shwoman._alpha += 5;
  418.       }
  419.       if(shwoman._alpha > 180)
  420.       {
  421.          return 1;
  422.       }
  423.    }
  424.    else if(n == 3)
  425.    {
  426.       if(shwoman._y > mirror_mc._y)
  427.       {
  428.          shwoman._y -= 20;
  429.       }
  430.       else
  431.       {
  432.          shwoman._alpha += 5;
  433.       }
  434.       if(shwoman._alpha > 180)
  435.       {
  436.          return 1;
  437.       }
  438.    }
  439.    else if(n == 4)
  440.    {
  441.       if(shwoman._x < mirror_mc._x)
  442.       {
  443.          shwoman._x += 20;
  444.       }
  445.       else
  446.       {
  447.          shwoman._alpha += 5;
  448.       }
  449.       if(shwoman._alpha > 180)
  450.       {
  451.          return 1;
  452.       }
  453.    }
  454.    else if(n == 5)
  455.    {
  456.       if(shwoman._x > mirror_mc._x)
  457.       {
  458.          shwoman._x -= 20;
  459.       }
  460.       else
  461.       {
  462.          shwoman._alpha += 5;
  463.       }
  464.       if(shwoman._alpha > 180)
  465.       {
  466.          return 1;
  467.       }
  468.    }
  469.    else if(n == 6)
  470.    {
  471.       if(shwoman._xscale < showscale)
  472.       {
  473.          shwoman._xscale += 3;
  474.          shwoman._yscale += 3;
  475.       }
  476.       shwoman._alpha += 5;
  477.       if(shwoman._rotation != 0)
  478.       {
  479.          shwoman._rotation += 20;
  480.       }
  481.       if(shwoman._alpha > 200)
  482.       {
  483.          return 1;
  484.       }
  485.    }
  486.    else if(n == 7)
  487.    {
  488.       shwoman._alpha += 5;
  489.       if(shwoman._alpha >= 180)
  490.       {
  491.          return 1;
  492.       }
  493.    }
  494.    else if(n == 8)
  495.    {
  496.       if(shwoman._xscale <= showscale * -1)
  497.       {
  498.          addnum = -8;
  499.       }
  500.       shwoman._xscale -= addnum;
  501.       if(shwoman._xscale >= showscale)
  502.       {
  503.          shwoman._xscale = showscale;
  504.          shwoman._alpha += 5;
  505.          if(shwoman._alpha > 180)
  506.          {
  507.             return 1;
  508.          }
  509.       }
  510.    }
  511.    else if(n == 9)
  512.    {
  513.       shwoman._alpha += 5;
  514.       if(shwoman._alpha >= 200)
  515.       {
  516.          return 1;
  517.       }
  518.    }
  519. }
  520. function clothexe()
  521. {
  522.    var k = 1;
  523.    while(k <= clothnum)
  524.    {
  525.       if(k < 10)
  526.       {
  527.          k = "0" + k;
  528.       }
  529.       _root["cloth_" + k].onPress = function()
  530.       {
  531.          btdown(this._name);
  532.       };
  533.       _root["cloth_" + k].onRelease = function()
  534.       {
  535.          btup(this._name);
  536.       };
  537.       k++;
  538.    }
  539. }
  540. function btdown(name)
  541. {
  542.    eval(name).clicknum = 1;
  543.    startDrag(name,0);
  544.    swnum++;
  545.    this[name].swapDepths(swnum);
  546.    this[name].depth = swnum;
  547.    clothname = name;
  548. }
  549. function btup(name)
  550. {
  551.    stopDrag();
  552.    if(styleon == 1)
  553.    {
  554.       stylecheck(name);
  555.    }
  556. }
  557. function stylecheck(name)
  558. {
  559.    var k = 0;
  560.    while(k <= stylecloth.length)
  561.    {
  562.       if(name == stylecloth[k])
  563.       {
  564.          stylename = "stylewoman." + name;
  565.          pt = new Object();
  566.          pt.x = eval(stylename)._x + eval(stylewoman)._x;
  567.          pt.y = eval(stylename)._y + eval(stylewoman)._y;
  568.          if(Math.abs(this[name]._x - pt.x) < 10 and Math.abs(this[name]._y - pt.y) < 10)
  569.          {
  570.             this[name]._x = pt.x;
  571.             this[name]._y = pt.y;
  572.             if(eval(stylename).righton != 1)
  573.             {
  574.                sndattach("dingdong");
  575.                strightnum++;
  576.                eval(stylename).righton = 1;
  577.             }
  578.             if(strightnum == stylecloth.length - 1)
  579.             {
  580.                sndattach("sucwav");
  581.                resultattmv("sucess");
  582.                st_sucesson = 1;
  583.             }
  584.          }
  585.          else if(eval(stylename).righton == 1)
  586.          {
  587.             strightnum--;
  588.             eval(stylename).righton = 0;
  589.          }
  590.       }
  591.       k++;
  592.    }
  593. }
  594. function attachtip()
  595. {
  596.    attachMovie("tip","tip",10001);
  597.    setProperty("tip", _X, 485);
  598.    setProperty("tip", _Y, 345);
  599. }
  600. function replay()
  601. {
  602.    var i = 1;
  603.    while(i <= womannum)
  604.    {
  605.       removeMovieClip("swoman" + i);
  606.       i++;
  607.    }
  608.    removeMovieClip("shwoman");
  609.    gotoAndPlay(4);
  610. }
  611. function textfocus()
  612. {
  613.    var k = 1;
  614.    while(k <= 3)
  615.    {
  616.       this["t" + k].tabIndex = k;
  617.       k++;
  618.    }
  619.    selection.setFocus("t1");
  620. }
  621. function etextfocus()
  622. {
  623.    var k = 1;
  624.    while(k <= 7)
  625.    {
  626.       this["e" + k].tabIndex = k;
  627.       k++;
  628.    }
  629. }
  630. function storysend()
  631. {
  632.    var k = 0;
  633.    while(k < cmt.length)
  634.    {
  635.       if(cmt.charCodeAt(k) == 13)
  636.       {
  637.          c += "<br>";
  638.       }
  639.       else
  640.       {
  641.          c += cmt.charAt(k);
  642.       }
  643.       k++;
  644.    }
  645.    comment = c;
  646.    0;
  647.    if(title == undefined or title == "")
  648.    {
  649.       getUrl("javascript:alert(\'∞á£δ¬⌐ ∞₧àδáÑ∞¥Ç φòä∞êÿ∞₧àδáÑ∞é¼φò¡∞₧àδïêδïñ\')", "");
  650.       return 0;
  651.    }
  652.    0;
  653.    if(secret == undefined or secret == "")
  654.    {
  655.       getUrl("javascript:alert(\'δéÿ∞ñæ∞ùÉ ∞êÿ∞áò/∞é¡∞á£δÑ╝ ∞£äφòÿ∞ù¼ δ╣äδ░Çδ▓êφÿ╕δÑ╝ ∞₧àδáÑφò┤ ∞ú╝∞ä╕∞Üö\')", "");
  656.       return 0;
  657.    }
  658.    0;
  659.    if(comment == undefined or cmt == "")
  660.    {
  661.       getUrl("javascript:alert(\'∞₧æφÆê∞¥ÿ δé┤∞Ü⌐∞¥ä Ω░äδï¿φ₧ê ∞₧àδáÑφò┤ ∞ú╝∞ä╕∞Üö\')", "");
  662.       return 0;
  663.    }
  664.    return 1;
  665. }
  666. function emailsend()
  667. {
  668.    0;
  669.    if(toemail == undefined or toemail == "" or toemail == "Email")
  670.    {
  671.       getUrl("javascript:alert(\'δ░¢∞£╝∞ï£δèö δ╢ä∞¥ÿ ∞¥┤δ⌐ö∞¥╝ ∞ú╝∞åîδÑ╝ ∞₧àδáÑφò┤ ∞ú╝∞àö∞ò╝ φÄ╕∞ºÇδÑ╝ δ│┤δé┤δô£δª¼∞úá\')", "");
  672.       return 0;
  673.    }
  674.    if(toemail.lastIndexof("@") < 0)
  675.    {
  676.       getUrl("javascript:alert(\'δ░¢∞£╝∞ï£δèö δ╢ä∞¥ÿ δ⌐ö∞¥╝ ∞ú╝∞åîφÿò∞ï¥∞¥┤ δº₧∞ºÇ ∞òè∞è╡δïêδïñ. δïñ∞∞₧àδáÑφò┤ ∞ú╝∞ä╕∞Üö\')", "");
  677.       return 0;
  678.    }
  679.    0;
  680.    if(title == undefined or title == "")
  681.    {
  682.       getUrl("javascript:alert(\'∞á£δ¬⌐∞¥ä ∞₧àδáÑφò┤ ∞ú╝∞àö∞ò╝δºî φò⌐δïêδïñ\')", "");
  683.       return 0;
  684.    }
  685.    0;
  686.    if(comment == undefined or comment == "")
  687.    {
  688.       getUrl("javascript:alert(\'∞òäδ¼┤δƒ░ δé┤∞Ü⌐∞ùå∞¥┤ φÄ╕∞ºÇδÑ╝ δ│┤δé┤∞ï£δáñΩ╡¼∞Üö?\')", "");
  689.       return 0;
  690.    }
  691.    if(frommail.lastIndexof("@") < 0)
  692.    {
  693.       getUrl("javascript:alert(\'δ│┤δé┤∞ï£δèö δ╢ä∞¥ÿ δ⌐ö∞¥╝∞ú╝∞åîδÑ╝ ∞₧àδáÑφò┤ ∞ú╝∞ä╕∞Üö\')", "");
  694.       return 0;
  695.    }
  696.    return 1;
  697. }
  698. function stylestart()
  699. {
  700.    styleon = 1;
  701.    strightnum = 0;
  702.    st_sucesson = 0;
  703.    st_startTime = getTimer();
  704.    clothexe();
  705.    attachMovie(style,"stylewoman",-100);
  706.    setProperty("stylewoman", _X, woman._x);
  707.    setProperty("stylewoman", _Y, woman._y);
  708.    pt = new Object();
  709.    pt.x = stylewoman.woman._x;
  710.    pt.y = stylewoman.woman._y;
  711.    stylewoman.localToglobal(pt);
  712.    stylewoman._x += woman._x - pt.x;
  713.    stylewoman._y += woman._y - pt.y;
  714.    setProperty("stylewoman", _alpha, 0);
  715.    stylecloth = [];
  716.    for(mm in stylewoman)
  717.    {
  718.       stylecloth.push(mm);
  719.    }
  720. }
  721. function resultattmv(filename)
  722. {
  723.    attachMovie(filename,"result",12000);
  724.    setProperty("result", _X, 480);
  725.    setProperty("result", _Y, 350);
  726. }
  727. function attachbg(bgnum)
  728. {
  729.    attfile = "bg" + bgnum;
  730.    attachMovie(attfile,"bgfile",-50);
  731.    setProperty("bgfile", _X, 659.3);
  732.    setProperty("bgfile", _Y, 440);
  733. }
  734. system.usecodepage = true;
  735. moviename = "bbddi336";
  736. clothnum = 52;
  737. showscale = 60;
  738. init();
  739.