home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / orbular.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2007-12-12  |  2.5 KB  |  103 lines

  1. function timeout()
  2. {
  3.    timedout = true;
  4.    scol.setRGB(16711680);
  5.    black.onFadeIn = function()
  6.    {
  7.       circ.clear();
  8.       _root.gotoAndStop("menu");
  9.    };
  10.    black.gotoAndPlay("out");
  11.    clearTimeout(servertimeout);
  12. }
  13. stop();
  14. cx = 300;
  15. cy = 200;
  16. scol = new Color(stats);
  17. scol.setRGB(0);
  18. onEnterFrame = function()
  19. {
  20.    if(getBytesLoaded() >= getBytesTotal())
  21.    {
  22.       var _loc7_ = new LoadVars();
  23.       var _loc8_ = new LoadVars();
  24.       _loc7_.u = _root._url;
  25.       _loc7_.v = brickver;
  26.       scol.setRGB(16776960);
  27.       _loc8_.onLoad = function(s)
  28.       {
  29.          if(timedout)
  30.          {
  31.             return undefined;
  32.          }
  33.          clearTimeout(servertimeout);
  34.          if(s)
  35.          {
  36.             if(this.a == 0)
  37.             {
  38.                scol.setRGB(255);
  39.                _root.gotoAndStop("restrict");
  40.             }
  41.             else
  42.             {
  43.                scol.setRGB(65280);
  44.                black.onFadeIn = function()
  45.                {
  46.                   circ.clear();
  47.                   _root.gotoAndStop("menu");
  48.                };
  49.                black.gotoAndPlay("out");
  50.             }
  51.          }
  52.          else
  53.          {
  54.             scol.setRGB(16711680);
  55.             black.onFadeIn = function()
  56.             {
  57.                circ.clear();
  58.                _root.gotoAndStop("menu");
  59.             };
  60.             black.gotoAndPlay("out");
  61.          }
  62.       };
  63.       _loc7_.sendAndLoad("http://www.tastylamp.net/orbular/inc.php",_loc8_,"POST");
  64.       clearTimeout(servertimeout);
  65.       servertimeout = setTimeout(_root,"timeout",8000);
  66.       delete onEnterFrame;
  67.    }
  68.    circ.clear();
  69.    circ.lineStyle(2,16777215,10);
  70.    var _loc3_ = 0;
  71.    while(_loc3_ < 6.283185307179586)
  72.    {
  73.       var _loc5_ = cx + Math.cos(_loc3_) * 40;
  74.       var _loc4_ = cy + Math.sin(_loc3_) * 40;
  75.       if(_loc3_ == 0)
  76.       {
  77.          circ.moveTo(_loc5_,_loc4_);
  78.       }
  79.       else
  80.       {
  81.          circ.lineTo(_loc5_,_loc4_);
  82.       }
  83.       _loc3_ += 0.017453292519943295;
  84.    }
  85.    circ.lineStyle(2,16777215,100);
  86.    var _loc6_ = getBytesLoaded() / getBytesTotal();
  87.    _loc3_ = -1.5707963267948966;
  88.    while(_loc3_ < 6.283185307179586 * _loc6_ - 1.5707963267948966)
  89.    {
  90.       _loc5_ = cx + Math.cos(_loc3_) * 40;
  91.       _loc4_ = cy + Math.sin(_loc3_) * 40;
  92.       if(_loc3_ == -1.5707963267948966)
  93.       {
  94.          circ.moveTo(_loc5_,_loc4_);
  95.       }
  96.       else
  97.       {
  98.          circ.lineTo(_loc5_,_loc4_);
  99.       }
  100.       _loc3_ += 0.017453292519943295;
  101.    }
  102. };
  103.