home *** CD-ROM | disk | FTP | other *** search
- function supprimeProfil()
- {
- trace("supprimeProfil = " + gListeProfil[gProfilSup].Pseudo);
- trace("gListeProfil[gProfilSup].Avatar = " + gListeProfil[gProfilSup].Avatar);
- trace("gProfilSup = " + gProfilSup);
- trace("gListeProfil[gProfilSup].Pseudo = " + gListeProfil[gProfilSup].Pseudo);
- var _loc3_ = gListeProfil[gProfilSup];
- gListeProfil.splice(gProfilSup,1);
- saveUSERS();
- var _loc2_ = gListeJoueur.length;
- var _loc1_ = 0;
- while(_loc1_ < _loc2_)
- {
- if(gListeJoueur[_loc1_] == _loc3_)
- {
- supprimeJoueur(_loc1_ + 1);
- break;
- }
- _loc1_ = _loc1_ + 1;
- }
- var _loc4_ = CARTE.CARTE.CARTE_4.gPage;
- if(gListeProfil.length > 10 * (_loc4_ - 1))
- {
- _loc1_ = 1;
- while(_loc1_ <= 10)
- {
- initProfilChoix(_loc1_);
- _loc1_ = _loc1_ + 1;
- }
- initFlechesProfilChoix();
- }
- else if(gListeProfil.length == 0)
- {
- gCarte = "CARTE_2";
- CARTE.CARTE.gotoAndPlay("E2");
- initAVATAR();
- }
- else
- {
- CARTE.CARTE.CARTE_4.gPage -= 1;
- CARTE.CARTE[gCarte].gotoAndPlay("retour");
- }
- }
- FOND.useHandCursor = false;
- FOND.onRollOver = function()
- {
- };
- FOND.onRollOut = function()
- {
- };
- FOND.onPress = function()
- {
- };
- gFromSup = true;
- var myMc = FEN_02.BT_OUI;
- myMc.pBruit = "B_OUI";
- myMc.onRollOver = function()
- {
- gereCursor(2);
- this.gotoAndPlay("E2");
- joueBruitage({nomSon:this.pBruit});
- };
- myMc.onRollOut = function()
- {
- gereCursor(1);
- this.gotoAndPlay("E1");
- stopBruitage({nomSon:this.pBruit});
- };
- myMc.onPress = function()
- {
- gereCursor(1);
- stopBruitage({nomSon:this.pBruit});
- supprimeProfil(gProfilSup);
- joueBruitage({nomSon:"B_FUIT"});
- gotoAndStop("ATTENTE_2");
- play();
- };
- var myMc = FEN_02.BT_NON;
- myMc.pBruit = "B_NON";
- myMc.onRollOver = function()
- {
- gereCursor(2);
- this.gotoAndPlay("E2");
- joueBruitage({nomSon:this.pBruit});
- };
- myMc.onRollOut = function()
- {
- gereCursor(1);
- this.gotoAndPlay("E1");
- stopBruitage({nomSon:this.pBruit});
- };
- myMc.onPress = function()
- {
- gereCursor(1);
- stopBruitage({nomSon:this.pBruit});
- var _loc2_ = 1;
- while(_loc2_ < 10)
- {
- initProfilChoix(_loc2_);
- _loc2_ = _loc2_ + 1;
- }
- gotoAndStop("ATTENTE_2");
- play();
- };
- stop();
-