home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 136
/
MOBICLIC136.ISO
/
pc
/
DATA
/
DSS136
/
DSS136_03
/
DSS136_03.swf
/
scripts
/
frame_60
/
DoAction.as
Wrap
Text File
|
2011-07-20
|
2KB
|
87 lines
function lanceExp()
{
_root.gotoAndStop("ATTENTE");
}
function finSonQuiz()
{
if(swfHolder_ !== undefined)
{
swfHolder_.removeMovieClip();
}
swfHolder.removeMovieClip();
gotoAndStop("ATTENTE");
}
stop();
joueSon({nomSon:"98",actionFin:"RIEN",mcCible:"ONCLE",mcLabelIn:"E2",mcLabelOut:"E1"});
gereTextes.afficheLM({mc:_root.LM,codeLM:"LM_Q" + gAnimNum});
var myID = "A_" + gModuleName + "_ANIM_Q_" + gAnimNum;
afficheSwf(myID,ZONE_ANIM.ACCUEIL);
var XmlLM = this.moduleInfo.returnNodeByPath("Module." + gLangue + ".LegendesMedias");
var lList = ["A","B","C","D","E"];
i = 4;
while(i >= 0)
{
if(gereTextes.getTextById(XmlLM,"LM_R" + gAnimNum + lList[i]) == undefined)
{
lList.splice(i,1);
}
i--;
}
gListeReponse = randomiseList(lList);
gDone = 0;
gResultat = undefined;
i = 0;
while(i < gListeReponse.length)
{
gereTextes.afficheLM({mc:_root.LM,codeLM:"LM_R" + gAnimNum + gListeReponse[i],numR:gimme2digits(i + 1)});
var pClip = this["LM_R" + gAnimNum + gListeReponse[i]];
var myClip = this["R" + gimme2digits(i + 1)];
myClip.gotoAndPlay("E1");
myClip.pCode = gListeReponse[i];
myClip.onRollOver = function()
{
if(gDone == 0)
{
gereCursor(2);
this.gotoAndPlay("E2");
joueBruitage({nomSon:"B_REP"});
trace(this.pCode);
}
};
myClip.onRollOut = function()
{
if(gDone == 0)
{
gereCursor(1);
this.gotoAndPlay("E1");
stopBruitage({nomSon:"B_REP"});
}
};
myClip.onPress = function()
{
if(gDone == 0)
{
gereCursor(1);
stopBruitage({nomSon:"B_REP"});
this.useHandCursor = false;
gDone = 1;
if(this.pCode == "A")
{
this.gotoAndPlay("E4");
PERSO_QUIZ.gotoAndPlay("S");
gResultat = "S";
lanceExp();
}
else
{
this.gotoAndPlay("E3");
gResultat = "E";
PERSO_QUIZ.gotoAndPlay("E");
lanceExp();
}
}
};
i++;
}
stop();