home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 15 / hacker15 / 15_H4CK3R#15.ISO / interface / it.dig / scripts / frame_2 / DoAction.as < prev   
Encoding:
Text File  |  2004-03-05  |  952 b   |  38 lines

  1. function saveFile()
  2. {
  3.    _level0.rc = "?";
  4.    fscommand("ARG","_level0.rc");
  5.    fscommand("ARG",_root.nomearquivo);
  6.    fscommand("ARG","Salvar arquivo");
  7.    fscommand("ARG","c:\\");
  8.    fscommand("ARG","|*.*||");
  9.    fscommand("FILESYS2.FILESAVE");
  10.    saveInterval = setInterval(function()
  11.    {
  12.       if(_level0.rc != "?")
  13.       {
  14.          copyFile(_level0.rc);
  15.          clearInterval(saveInterval);
  16.       }
  17.    }
  18.    ,50);
  19. }
  20. function copyFile(destination)
  21. {
  22.    _root.set_teste = _level0.ssStartDir + _root.caminho + _root.nomearquivo;
  23.    _level0.result = "?";
  24.    fscommand("Arg","_level0.result");
  25.    fscommand("ARG",_level0.ssStartDir + _root.caminho + _root.nomearquivo);
  26.    fscommand("ARG",_level0.rc);
  27.    fscommand("Arg","FALSE");
  28.    fscommand("FILESYS2.COPYFILE");
  29.    copyInterval = setInterval(function()
  30.    {
  31.       if(_level0.result != "?")
  32.       {
  33.          clearInterval(copyInterval);
  34.       }
  35.    }
  36.    ,50);
  37. }
  38.