home *** CD-ROM | disk | FTP | other *** search
/ Clickx 44 / Clickx 44.iso / assets / swf / start.swf / scripts / __Packages / clickx / shell / Shell.as
Encoding:
Text File  |  2007-01-01  |  2.3 KB  |  92 lines

  1. var ┬º\x01┬º = 503;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 503)
  5.    {
  6.       set("\x01",eval("\x01") - 388);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") != 115)
  12.       {
  13.          break;
  14.       }
  15.       set("\x01",eval("\x01") + 356);
  16.       if(┬º┬ºpop())
  17.       {
  18.          set("\x01",eval("\x01") + 298);
  19.       }
  20.    }
  21. }
  22. if(eval("\x01") == 471)
  23. {
  24.    set("\x01",eval("\x01") + 298);
  25.    toggleHighQuality();
  26. }
  27. else if(eval("\x01") == 769)
  28. {
  29.    set("\x01",eval("\x01") - 567);
  30.    if(!_global.clickx)
  31.    {
  32.       _global.clickx = new Object();
  33.    }
  34.    ┬º┬ºpop();
  35.    if(!_global.clickx.shell)
  36.    {
  37.       _global.clickx.shell = new Object();
  38.    }
  39.    ┬º┬ºpop();
  40.    if(!_global.clickx.shell.Shell)
  41.    {
  42.       var _loc2_ = clickx.shell.Shell = function()
  43.       {
  44.       }.prototype;
  45.       _loc2_.launchFile = function(fileName)
  46.       {
  47.          _level0.mdm.exec(fileName,_level0.mdm.ASYNC);
  48.       };
  49.       _loc2_.launchURL = function(theURL)
  50.       {
  51.          if(clickx.util.PlatformUtil.getPlatform() != "mac")
  52.          {
  53.             _level0.mdm.exec(theURL,_level0.mdm.ASYNC);
  54.          }
  55.          else
  56.          {
  57.             var _loc1_ = "tell application \"Safari\"\r";
  58.             _loc1_ += "activate\r";
  59.             _loc1_ += "open location \"" + theURL + "\"" + "\n";
  60.             _loc1_ += "end tell";
  61.             _level0.mdm.AppleScript.setScript(_loc1_);
  62.             var _loc3_ = _level0.mdm.AppleScript.compileScript();
  63.             var _loc2_ = _level0.mdm.AppleScript.run(_level0.mdm.ASYNC);
  64.          }
  65.       };
  66.       _loc2_.prompt = function(theMessage)
  67.       {
  68.          _level0.mdm.Dialogs.prompt(theMessage);
  69.       };
  70.       _loc2_.execute = function(command)
  71.       {
  72.          _level0.mdm.exec(command,_level0.mdm.ASYNC);
  73.       };
  74.       _loc2_.shutDown = function()
  75.       {
  76.          _level0.mdm.Application.exit(_level0.mdm.ASYNC);
  77.       };
  78.       clickx.shell.Shell = function()
  79.       {
  80.       }.getInstance = function()
  81.       {
  82.          if(clickx.shell.Shell._instance == null)
  83.          {
  84.             clickx.shell.Shell._instance = new clickx.shell.Shell();
  85.          }
  86.          return clickx.shell.Shell._instance;
  87.       };
  88.       ┬º┬ºpush(ASSetPropFlags(clickx.shell.Shell.prototype,null,1));
  89.    }
  90.    ┬º┬ºpop();
  91. }
  92.