home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 160 / MOBICLIC160.ISO / pc / DATA / QZZ160 / QZZ160_00 / QZZ160_00.swf / scripts / frame_105 / DoAction.as
Encoding:
Text File  |  2013-12-16  |  2.3 KB  |  106 lines

  1. function supprimeProfil()
  2. {
  3.    trace("supprimeProfil = " + gListeProfil[gProfilSup].Pseudo);
  4.    trace("gListeProfil[gProfilSup].Avatar = " + gListeProfil[gProfilSup].Avatar);
  5.    trace("gProfilSup = " + gProfilSup);
  6.    trace("gListeProfil[gProfilSup].Pseudo = " + gListeProfil[gProfilSup].Pseudo);
  7.    var _loc3_ = gListeProfil[gProfilSup];
  8.    gListeProfil.splice(gProfilSup,1);
  9.    saveUSERS();
  10.    var _loc2_ = gListeJoueur.length;
  11.    var _loc1_ = 0;
  12.    while(_loc1_ < _loc2_)
  13.    {
  14.       if(gListeJoueur[_loc1_] == _loc3_)
  15.       {
  16.          supprimeJoueur(_loc1_ + 1);
  17.          break;
  18.       }
  19.       _loc1_ = _loc1_ + 1;
  20.    }
  21.    var _loc4_ = CARTE.CARTE.CARTE_4.gPage;
  22.    if(gListeProfil.length > 10 * (_loc4_ - 1))
  23.    {
  24.       _loc1_ = 1;
  25.       while(_loc1_ <= 10)
  26.       {
  27.          initProfilChoix(_loc1_);
  28.          _loc1_ = _loc1_ + 1;
  29.       }
  30.       initFlechesProfilChoix();
  31.    }
  32.    else if(gListeProfil.length == 0)
  33.    {
  34.       gCarte = "CARTE_2";
  35.       CARTE.CARTE.gotoAndPlay("E2");
  36.       initAVATAR();
  37.    }
  38.    else
  39.    {
  40.       CARTE.CARTE.CARTE_4.gPage -= 1;
  41.       CARTE.CARTE[gCarte].gotoAndPlay("retour");
  42.    }
  43. }
  44. FOND.useHandCursor = false;
  45. FOND.onRollOver = function()
  46. {
  47. };
  48. FOND.onRollOut = function()
  49. {
  50. };
  51. FOND.onPress = function()
  52. {
  53. };
  54. gFromSup = true;
  55. var myMc = FEN_02.BT_OUI;
  56. myMc.pBruit = "B_OUI";
  57. myMc.onRollOver = function()
  58. {
  59.    gereCursor(2);
  60.    this.gotoAndPlay("E2");
  61.    joueBruitage({nomSon:this.pBruit});
  62. };
  63. myMc.onRollOut = function()
  64. {
  65.    gereCursor(1);
  66.    this.gotoAndPlay("E1");
  67.    stopBruitage({nomSon:this.pBruit});
  68. };
  69. myMc.onPress = function()
  70. {
  71.    gereCursor(1);
  72.    stopBruitage({nomSon:this.pBruit});
  73.    supprimeProfil(gProfilSup);
  74.    joueBruitage({nomSon:"B_FUIT"});
  75.    gotoAndStop("ATTENTE_2");
  76.    play();
  77. };
  78. var myMc = FEN_02.BT_NON;
  79. myMc.pBruit = "B_NON";
  80. myMc.onRollOver = function()
  81. {
  82.    gereCursor(2);
  83.    this.gotoAndPlay("E2");
  84.    joueBruitage({nomSon:this.pBruit});
  85. };
  86. myMc.onRollOut = function()
  87. {
  88.    gereCursor(1);
  89.    this.gotoAndPlay("E1");
  90.    stopBruitage({nomSon:this.pBruit});
  91. };
  92. myMc.onPress = function()
  93. {
  94.    gereCursor(1);
  95.    stopBruitage({nomSon:this.pBruit});
  96.    var _loc2_ = 1;
  97.    while(_loc2_ < 10)
  98.    {
  99.       initProfilChoix(_loc2_);
  100.       _loc2_ = _loc2_ + 1;
  101.    }
  102.    gotoAndStop("ATTENTE_2");
  103.    play();
  104. };
  105. stop();
  106.