home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 148
/
MOBICLIC148.ISO
/
mac
/
DATA
/
QZZ148
/
QZZ148_00
/
QZZ148_00.swf
/
scripts
/
frame_76
/
DoAction.as
Wrap
Text File
|
2012-10-16
|
13KB
|
480 lines
function finSonDEB()
{
CAPITAINE.gotoAndPlay("E1");
}
function initBT_RETOUR()
{
var _loc2_ = BT_RETOUR;
_loc2_.pBruit = "B_RETOUR";
_loc2_.pIB = "IB_07";
_loc2_.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
joueBruitage({nomSon:this.pBruit});
var _loc3_ = this._x - 20;
var _loc2_ = this._y + 40;
gereTextes.afficheIB({codeIB:this.pIB,X:_loc3_,Y:_loc2_});
};
_loc2_.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
stopBruitage({nomSon:this.pBruit});
gereTextes.masqueIB();
};
_loc2_.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:this.pBruit});
gereTextes.masqueIB();
gotoAndStop("ATTENTE_1");
play();
};
}
function testDebut(lDontDoIt)
{
if(lDontDoIt == undefined)
{
gCarte = "CARTE_2";
CARTE.CARTE.gotoAndPlay("E2");
}
initAVATAR();
if(gTypePartie == 1)
{
if(gFirstTime == 1)
{
var _loc2_ = "I_03A_01";
}
else
{
_loc2_ = "I_03A_02";
if(lDontDoIt == undefined)
{
initPROFIL();
}
}
}
else
{
initBT_OK_CADRE();
if(gFirstTime == 1)
{
_loc2_ = "I_03B_01";
}
else
{
_loc2_ = "I_03B_02";
if(lDontDoIt == undefined)
{
initPROFIL();
}
}
}
if(gIntro == true)
{
gIntro = undefined;
CAPITAINE.gotoAndPlay("E2");
joueSon({nomSon:_loc2_,actionFin:"finSonDEB"});
}
}
function initAVATAR()
{
var _loc2_ = CARTE.CARTE[gCarte].AVATAR;
_loc2_.pBruit = "B_AVATAR";
_loc2_.pIB = "IB_03";
_loc2_.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
joueBruitage({nomSon:this.pBruit});
var _loc3_ = this._x + CARTE._x - 230;
var _loc2_ = this._y + CARTE._y + 70;
gereTextes.afficheIB({codeIB:this.pIB,X:_loc3_,Y:_loc2_});
};
_loc2_.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
stopBruitage({nomSon:this.pBruit});
gereTextes.masqueIB();
};
_loc2_.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:this.pBruit});
gereTextes.masqueIB();
joueBruitage({nomSon:"B_CARTE"});
gCarte = "CARTE_3";
CARTE.CARTE.gotoAndPlay("E3");
if(gTypePartie == 1)
{
var _loc2_ = "I_AVATAR_01";
}
else
{
_loc2_ = "I_AVATAR_02";
}
if(gDoneSonAvatar == undefined)
{
gDoneSonAvatar = true;
CAPITAINE.gotoAndPlay("E2");
joueSon({nomSon:_loc2_,actionFin:"finSonDEB"});
}
else
{
finSonDEB();
}
};
}
function initPROFIL()
{
var _loc2_ = CARTE.CARTE[gCarte].PROFIL;
_loc2_.gotoAndPlay("E1");
_loc2_.pBruit = "B_PROFIL";
_loc2_.pIB = "IB_PROFIL";
_loc2_.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
joueBruitage({nomSon:this.pBruit});
var _loc3_ = this._x + CARTE._x - 230;
var _loc2_ = this._y + CARTE._y + 70;
gereTextes.afficheIB({codeIB:this.pIB,X:_loc3_,Y:_loc2_});
};
_loc2_.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
stopBruitage({nomSon:this.pBruit});
gereTextes.masqueIB();
};
_loc2_.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:this.pBruit});
gereTextes.masqueIB();
joueBruitage({nomSon:"B_CARTE"});
gCarte = "CARTE_4";
CARTE.CARTE.gotoAndPlay("E4");
};
}
function testeAvatarDejaPris(lAvat)
{
var _loc2_ = false;
var _loc3_ = gListeJoueur.length;
var _loc1_ = 0;
while(_loc1_ <= _loc3_)
{
if(gListeJoueur[_loc1_].Avatar == lAvat)
{
_loc2_ = true;
break;
}
_loc1_ = _loc1_ + 1;
}
return _loc2_;
}
function initAVATARS()
{
gInfosJoueur = new Object();
var _loc6_ = 10;
var _loc4_ = 1;
while(_loc4_ <= _loc6_)
{
var _loc3_ = CARTE.CARTE[gCarte]["AVATAR_" + gimme2digits(_loc4_)];
_loc3_._alpha = 100;
_loc3_.pNum = _loc4_;
_loc3_.pBruit = "B_AVATAR";
_loc3_.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
joueBruitage({nomSon:this.pBruit});
};
_loc3_.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
stopBruitage({nomSon:this.pBruit});
};
_loc3_.onPress = function()
{
trace("PRESS AVATAR " + this.pNum);
gereCursor(1);
stopBruitage({nomSon:this.pBruit});
trace("gInfosJoueur.Pseudo = " + gInfosJoueur.Pseudo);
gInfosJoueur.Avatar = this.pNum;
_root.gotoAndPlay("FEN_1");
};
_loc4_ = _loc4_ + 1;
}
}
function desinitAVATARS()
{
var _loc3_ = 10;
var _loc1_ = 1;
while(_loc1_ <= _loc3_)
{
var _loc2_ = CARTE.CARTE[gCarte]["AVATAR_" + gimme2digits(_loc1_)];
desactiveClip(_loc2_);
_loc1_ = _loc1_ + 1;
}
}
function initPROFILS(mc, lProfil)
{
var _loc5_ = CARTE.CARTE[gCarte].gPage;
var _loc3_ = mc["AVATAR_" + gimme2digits(mc.pInfosJoueur.Avatar)];
if(mc._visible == true)
{
if(getPos(gListeJoueur,mc.pInfosJoueur) == -1)
{
_loc3_._alpha = 100;
_loc3_.useHandCursor = true;
_loc3_.pNum = lProfil + 10 * (_loc5_ - 1);
_loc3_.pBruit = "B_PROFIL";
_loc3_.pIB = "IB_" + mc.pInfosJoueur.Pseudo;
_loc3_.pIB_texte = mc.pInfosJoueur.Pseudo;
_loc3_.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
joueBruitage({nomSon:this.pBruit});
var _loc3_ = this._parent._x + CARTE._x + CARTE.CARTE._x + CARTE.CARTE[gCarte]._x + 20;
var _loc2_ = this._parent._y + CARTE._y + CARTE.CARTE._y + CARTE.CARTE[gCarte]._y + 60;
gereTextes.afficheIB({codeIB:this.pIB,texte:this.pIB_texte,X:_loc3_,Y:_loc2_});
};
_loc3_.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
stopBruitage({nomSon:this.pBruit});
gereTextes.masqueIB();
};
_loc3_.onPress = function()
{
this._alpha = 50;
gereTextes.masqueIB();
desactiveClip(this);
gereCursor(1);
stopBruitage({nomSon:this.pBruit});
gInfosJoueur = this._parent.pInfosJoueur;
gListeJoueur.push(this._parent.pInfosJoueur);
if(gTypePartie == 1)
{
gotoAndStop("TRANSIT_01");
play();
}
else
{
ajouteCadreJoueur(gInfosJoueur,gJoueur);
joueBruitage({nomSon:"B_OK"});
if(gJoueur == 1)
{
CAPITAINE.gotoAndPlay("E2");
joueSon({nomSon:"I_03B_CADRE",actionFin:"finSonDEB"});
}
if(gJoueur < 4)
{
gJoueur += 1;
gInfosJoueur = new Object();
testDebut(1);
var _loc2_ = 1;
while(_loc2_ <= 10)
{
initProfilChoix(_loc2_);
_loc2_ = _loc2_ + 1;
}
}
else
{
gJoueur += 1;
gCarte = "CARTE_1";
CARTE.CARTE.gotoAndPlay("E1");
CARTE.PANNEAU_CADRE.BT_OK.gotoAndPlay("E3");
}
}
};
}
else
{
_loc3_._alpha = 50;
_loc3_.useHandCursor = false;
delete _loc3_.onPress;
_loc3_.pIB = "IB_" + mc.pInfosJoueur.Pseudo;
_loc3_.pIB_texte = mc.pInfosJoueur.Pseudo;
_loc3_.onRollOver = function()
{
var _loc3_ = this._parent._x + CARTE._x + CARTE.CARTE._x + CARTE.CARTE[gCarte]._x + 20;
var _loc2_ = this._parent._y + CARTE._y + CARTE.CARTE._y + CARTE.CARTE[gCarte]._y + 60;
gereTextes.afficheIB({codeIB:this.pIB,texte:this.pIB_texte,X:_loc3_,Y:_loc2_});
};
_loc3_.onRollOut = function()
{
gereTextes.masqueIB();
};
}
}
}
function initProfilChoix(lProfil)
{
trace("myPage " + CARTE.CARTE[gCarte].gPage);
var _loc2_ = CARTE.CARTE[gCarte].gPage;
var _loc4_ = CARTE.CARTE[gCarte]["PROFIL_" + gimme2digits(lProfil)];
var _loc3_ = CARTE.CARTE[gCarte]["BT_CROIX_" + gimme2digits(lProfil)];
trace("lProfil = " + lProfil);
trace("gListeProfil[lProfil-1+(10*(myPage-1))].Pseudo = " + gListeProfil[lProfil - 1 + 10 * (_loc2_ - 1)].Pseudo);
if(gListeProfil[lProfil - 1 + 10 * (_loc2_ - 1)] !== undefined)
{
_loc4_._visible = true;
_loc3_._visible = true;
_loc4_.gotoAndStop(gListeProfil[lProfil - 1 + 10 * (_loc2_ - 1)].Avatar);
_loc4_.pInfosJoueur = gListeProfil[lProfil - 1 + 10 * (_loc2_ - 1)];
_loc3_.gotoAndPlay("E1");
_loc3_.pNum = lProfil - 1 + 10 * (_loc2_ - 1);
initBTSuppProfil(_loc3_);
initPROFILS(_loc4_,lProfil);
}
else
{
_loc4_._visible = false;
_loc3_._visible = false;
}
}
function initBTSuppProfil(mc)
{
mc.pIB = "IB_CROIX_SUP";
var _loc6_ = CARTE.CARTE[gCarte].gPage;
mc.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
var _loc3_ = this._x + CARTE._x + CARTE.CARTE._x + CARTE.CARTE[gCarte]._x;
var _loc2_ = this._y + CARTE._y + CARTE.CARTE._y + CARTE.CARTE[gCarte]._y - 60;
gereTextes.afficheIB({codeIB:this.pIB,X:_loc3_,Y:_loc2_});
};
mc.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
gereTextes.masqueIB();
};
mc.onPress = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
gereTextes.masqueIB();
gProfilSup = this.pNum;
gotoAndStop("FEN_2");
play();
};
}
function desinitPROFILS()
{
var _loc1_ = 1;
while(_loc1_ < 10)
{
var _loc2_ = CARTE.CARTE[gCarte]["PROFIL_" + gimme2digits(_loc1_)];
desactiveClip(_loc2_);
_loc1_ = _loc1_ + 1;
}
}
function desinitTousBTSuppProfil()
{
var _loc1_ = 1;
while(_loc1_ < 10)
{
var _loc2_ = CARTE.CARTE[gCarte]["BT_CROIX_" + gimme2digits(_loc1_)];
desactiveClip(_loc2_);
_loc1_ = _loc1_ + 1;
}
}
function initFlechesProfilChoix()
{
var _loc1_ = CARTE.CARTE[gCarte].gPage;
trace("myPage = " + _loc1_);
if(_loc1_ == 1)
{
CARTE.CARTE[gCarte].BT_FLECHE_D._visible = false;
trace("gListeProfil.length = " + gListeProfil.length);
trace("(10*myPage) = " + 10 * _loc1_);
if(gListeProfil.length <= 10 * _loc1_)
{
CARTE.CARTE[gCarte].BT_FLECHE_G._visible = false;
}
else
{
initProfilBT_FLECHE_G();
}
}
else
{
initProfilBT_FLECHE_D();
trace("gListeProfil.length = " + gListeProfil.length);
trace("(10*myPage) = " + 10 * _loc1_);
if(gListeProfil.length <= 10 * _loc1_)
{
CARTE.CARTE[gCarte].BT_FLECHE_G._visible = false;
}
else
{
initProfilBT_FLECHE_G();
}
}
}
function initProfilBT_FLECHE_G()
{
var _loc2_ = CARTE.CARTE[gCarte].BT_FLECHE_G;
_loc2_.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
};
_loc2_.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
};
_loc2_.onPress = function()
{
gereCursor(1);
joueBruitage({nomSon:"B_FLECHE"});
this.gotoAndPlay("E1");
CARTE.CARTE[gCarte].gPage += 1;
CARTE.CARTE[gCarte].gotoAndPlay("retour");
};
}
function initProfilBT_FLECHE_D()
{
var _loc2_ = CARTE.CARTE[gCarte].BT_FLECHE_D;
_loc2_.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
};
_loc2_.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
};
_loc2_.onPress = function()
{
gereCursor(1);
joueBruitage({nomSon:"B_FLECHE"});
this.gotoAndPlay("E1");
CARTE.CARTE[gCarte].gPage -= 1;
CARTE.CARTE[gCarte].gotoAndPlay("retour");
};
}
delete onEnterFrame;
initBT_RETOUR();
if(gFromSup == undefined)
{
testDebut();
}
else
{
gFromSup = undefined;
}
stop();