home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / back_to_work.swf / scripts / DefineButton2_838 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2007-09-27  |  1.3 KB  |  45 lines

  1. on(release){
  2.    if(_root.emailsend() == 1)
  3.    {
  4.       _root.emailsend();
  5.       clothnum = [];
  6.       clothname = [];
  7.       xcloth = [];
  8.       ycloth = [];
  9.       depcloth = [];
  10.       modelaction = [];
  11.       moviename = _root.moviename;
  12.       var k = 1;
  13.       while(k <= _root.womannum)
  14.       {
  15.          _root["cloth" + k].shift();
  16.          _root["xcloth" + k].shift();
  17.          _root["ycloth" + k].shift();
  18.          _root["depcloth" + k].shift();
  19.          clothnum[k - 1] = _root["cloth" + k].length;
  20.          clothname = clothname.concat(_root["cloth" + k]);
  21.          xcloth = xcloth.concat(_root["xcloth" + k]);
  22.          ycloth = ycloth.concat(_root["ycloth" + k]);
  23.          depcloth = depcloth.concat(_root["depcloth" + k]);
  24.          modelaction.push(_root.showaction[k]);
  25.          k++;
  26.       }
  27.       clothnum.push("0");
  28.       clothname.push("0");
  29.       xcloth.push("0");
  30.       ycloth.push("0");
  31.       depcloth.push("0");
  32.       modelaction.push("0");
  33.       bgnum = _root.bgnum;
  34.       toname = _root.toname;
  35.       toemail = _root.toemail;
  36.       fromname = _root.fromname;
  37.       fromemail = _root.fromemail;
  38.       title = _root.title;
  39.       name = _root.name;
  40.       comment = _root.comment;
  41.       musicurl = _root.selmusicurl;
  42.       this.getURL("../card/load_n.asp","_self","post");
  43.    }
  44. }
  45.