home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 136
/
MOBICLIC136.ISO
/
pc
/
DATA
/
DCV136
/
DCV136_00
/
DCV136_00.swf
/
scripts
/
frame_136
/
DoAction.as
Wrap
Text File
|
2011-07-20
|
2KB
|
78 lines
function initQuestion(lQuestion)
{
question = lQuestion;
question2D = gimme2digits(lQuestion);
listZones = ["R" + question2D + "_01","R" + question2D + "_02","R" + question2D + "_03"];
var _loc4_ = 0;
while(_loc4_ <= listZones.length)
{
this[listZones[_loc4_]].pZone = _loc4_ + 1;
this[listZones[_loc4_]].onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_" + question2D + "_" + gimme2digits(this.pZone)});
gereTextes.afficheIB({codeIB:"IB_" + question2D + "_" + gimme2digits(this.pZone),X:_root._xmouse,Y:_root._ymouse});
};
this[listZones[_loc4_]].onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_" + question2D + "_" + gimme2digits(this.pZone)});
gereTextes.masqueIB();
};
this[listZones[_loc4_]].onPress = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_" + question2D + "_" + gimme2digits(this.pZone)});
gereTextes.masqueIB();
switch(this.pZone)
{
case 1:
case 2:
_root.gotoAndStop("_" + question2D + "_BAD");
break;
case 3:
_root.nbBonReponses += 1;
_root.gotoAndStop("_" + question2D + "_GOOD");
}
_global.HOTE[gNomListeVu][_root.question - 1] = 1;
trace("_global.HOTE[gNomListeVu] " + _global.HOTE[gNomListeVu]);
};
_loc4_ = _loc4_ + 1;
}
}
function timber()
{
joueBruitage({nomSon:"B_PAF"});
this["ARBRE_" + question2D].gotoAndStop("E2");
}
function bucheron3()
{
this["BUCHERON_" + question2D].gotoAndStop("E3");
SINGE.gotoAndStop("E3");
joueSon({nomSon:nom_du_son,actionFin:"suiteReponse"});
}
function coco()
{
joueBruitage({nomSon:"B_BONG"});
}
function bucheron5()
{
this["BUCHERON_" + question2D].gotoAndStop("E5");
SINGE.gotoAndStop("E4");
joueSon({nomSon:nom_du_son,actionFin:"suiteReponse"});
}
function suiteReponse()
{
SINGE.gotoAndStop("E1");
gotoAndStop("_" + question2D + "_01");
}
var nom_du_son = "Q01";
teste_quiz(3);
joueSon({nomSon:nom_du_son,actionFin:"stopSinge"});
stop();
nbBonReponses = 0;
initQuestion(1);