home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 164
/
MOBICLIC164.ISO
/
pc
/
DATA
/
TST164
/
TST164_00
/
TST164_00.swf
/
scripts
/
frame_41
/
DoAction.as
Wrap
Text File
|
2014-05-13
|
3KB
|
120 lines
if(gPCent == undefined)
{
gBlockST = 1;
joueSon({nomSon:"C00",actionFin:"RIEN"});
}
lList = ["A","B","C","D","E"];
gListe_W_H = [[151,281],[120,226],[90,168],[42,82]];
var myMax = 0;
var i = 0;
while(i < gListPCent.length)
{
if(gListPCent[i] > myMax)
{
myMax = gListPCent[i];
}
i++;
}
gListeCadre = [];
var i = 0;
while(i < gListPCent.length)
{
gListeCadre[i] = 0;
this["CONCLU_" + lList[i]]._alpha = 0;
var myClip = this["CONCLU_" + lList[i]].CONCLU.CONCLU.ACCUEIL;
if(gSexe == "G")
{
myClip.id = "A_" + gModuleName + "_CONCLU_" + lList[i];
}
else
{
myClip.id = "A_" + gModuleName + "_CONCLU_" + lList[i] + "Z";
}
var swfHolderNom = myClip.createEmptyMovieClip("swfHolder_" + (i + 1),chercheDepthPlus(myClip,0));
myClip["swfHolder_" + (i + 1)].pNum = i;
this["mclR_C_" + i] = new MovieClipLoader();
this["mclR_C_" + i].loadClip(_global.gModulePath + moduleInfo.getResourceById(myClip.id).firstChild.attributes.src,swfHolderNom);
this["mclR_C_" + i].onLoadInit = function(lClip)
{
var _loc2_ = lClip._parent._parent._parent._parent;
var _loc1_ = gListPCent[Number(lClip._name.split("_")[1]) - 1] * 100 / myMax;
if(_loc1_ == 0)
{
_loc1_ = 10;
}
var _loc5_ = Number(lClip._name.split("_")[1]) - 1;
var _loc4_ = gListeCadre[_loc5_];
cadreWidth = gListe_W_H[_loc4_][0];
cadreHeight = gListe_W_H[_loc4_][1];
adapteImage(lClip,1);
_loc2_._xscale = _loc1_;
_loc2_._yscale = _loc1_;
_loc2_._y -= 59 * (100 - _loc1_) / 100;
_loc2_._alpha = 100;
};
myClip._parent._parent.pCent.text = String(gListPCent[i]) + "%";
var lIB = "";
var _loc0_ = null;
if((_loc0_ = gSexe) !== "F")
{
lIB = "IB" + lList[i];
}
else if(gereTextes.getTextById(XmlIB,"IB" + lList[i] + "Z") !== undefined)
{
lIB = "IB" + lList[i] + "Z";
}
else
{
lIB = "IB" + lList[i];
}
this["CONCLU_" + lList[i]].pIB = lIB;
this["CONCLU_" + lList[i]].pLettre = lList[i];
this["CONCLU_" + lList[i]].onRollOver = function()
{
gereCursor(2);
this.CONCLU.CONCLU.gotoAndStop("E2");
gereTextes.afficheIB({X:this._x,Y:this._y - this._yscale / 2,codeIB:this.pIB});
var _loc3_ = _root.IB;
var _loc4_ = _loc3_.IB.fond._width;
_loc3_._x -= _loc4_ / 2;
joueBruitage({nomSon:"B_" + this.pLettre});
};
this["CONCLU_" + lList[i]].onDragOut = _loc0_ = function()
{
gereCursor(1);
this.CONCLU.CONCLU.gotoAndStop("E1");
gereTextes.masqueIB();
stopBruitage({nomSon:"B_" + this.pLettre});
};
this["CONCLU_" + lList[i]].onRollOut = _loc0_;
this["CONCLU_" + lList[i]].onPress = function()
{
gereCursor(1);
gereTextes.masqueIB();
this.CONCLU.CONCLU.gotoAndStop("E1");
stopBruitage({nomSon:"B_" + this.pLettre});
if(gSexe == "G")
{
gConclu = this.pLettre;
}
else
{
gConclu = this.pLettre + "Z";
}
gPCent = this.CONCLU.pCent.text.split("%")[0];
gotoAndStop("PROFIL");
};
i++;
}
onMcOver({mc:BT_PRINT,codeIB:"IB94"});
BT_PRINT.onPress = function()
{
onMcOut(this);
BT_REFAIRE._visible = false;
this._visible = false;
_global.ImprimerEcran();
BT_REFAIRE._visible = true;
this._visible = true;
};
stop();