home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / blox.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.1 KB  |  47 lines

  1. function checkGoodUrl(myUrl)
  2. {
  3.    if(_url.substr(0,myUrl.length) == myUrl)
  4.    {
  5.       return 1;
  6.    }
  7.    return 0;
  8. }
  9. LinkBuyMe = "http://www.arcadetown.com/order/choosemethod.asp?gameid=blox";
  10. LinkMoreGames = "http://www.arcadetown.com/index.asp?gameid=blox";
  11. HiScoreEnabled = 1;
  12. HiScoreSaveURL = "http://www.arcadetown.com/blox/hs.asp";
  13. HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=blox";
  14. RegisteredVersion = 0;
  15. EnableEscSkipLevel = 0;
  16. var isGoodUrl = 1;
  17. if(_root.RegisteredVersion == 1)
  18. {
  19.    if(checkGoodUrl("http://") == 1)
  20.    {
  21.       if(checkGoodUrl("http://www.arcadetown.com") == 1 || checkGoodUrl("http://arcadetown.com") == 1 || checkGoodUrl("http://www.freewebgames.com") == 1 || checkGoodUrl("http://freewebgames.com") == 1)
  22.       {
  23.          isGoodUrl = 1;
  24.       }
  25.       else
  26.       {
  27.          isGoodUrl = 0;
  28.       }
  29.    }
  30. }
  31. if(isGoodUrl == 1)
  32. {
  33.    if(_framesloaded >= _totalframes)
  34.    {
  35.       gotoAndPlay(3);
  36.       stop();
  37.    }
  38.    else
  39.    {
  40.       ProgressBar._xscale = int(getBytesLoaded() / getBytesTotal() * 100);
  41.    }
  42. }
  43. else
  44. {
  45.    ProgressBar._xscale = 0;
  46. }
  47.