home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / angelpang.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.3 KB  |  51 lines

  1. function FNlist()
  2. {
  3.    LVlist = new LoadVars();
  4.    LVlist.onLoad = function()
  5.    {
  6.       trace(this.content);
  7.       content = this.content.split("|");
  8.       this.total = content.length;
  9.       var i = 0;
  10.       while(i < this.total / 4)
  11.       {
  12.          _root.ranking["rank" + i].text = content[i * 4];
  13.          _root.ranking["user_id" + i].text = content[i * 4 + 1];
  14.          _root.ranking["score" + i].text = content[i * 4 + 2];
  15.          _root.ranking["date" + i].text = content[i * 4 + 3];
  16.          i++;
  17.       }
  18.       delete LVlist;
  19.    };
  20.    LVlist.load("http://" + _root.homepage + "/" + _root.site + "/get_rank." + _root.prog + "?flag=" + _root.flag + "&user_id=" + _root.user_id + "&game_id=" + _root.game_id + "&cash=" + Math.random() * 65000);
  21. }
  22. function soundOn()
  23. {
  24.    SoundObj.setVolume(100);
  25. }
  26. function soundOff()
  27. {
  28.    SoundObj.setVolume(0);
  29. }
  30. this.stop();
  31. SoundObj.stop();
  32. volume_controler.gotoAndStop(soundFrame);
  33. Stage.showMenu = false;
  34. fscommand("STT_start");
  35. SoundObj = new Sound(this);
  36. SoundObj.attachSound("bg_m");
  37. _root.homepage = "http://www.flashgame.co.kr";
  38. this.onEnterFrame = function()
  39. {
  40.    if(this.vol == 1)
  41.    {
  42.       soundOn();
  43.       this.vol = 2;
  44.    }
  45.    if(this.vol == 0)
  46.    {
  47.       soundOff();
  48.       this.vol = 2;
  49.    }
  50. };
  51.