home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 174
/
MOBICLIC174.ISO
/
mac
/
DATA
/
BLA174
/
BLA174_01
/
BLA174_01.swf
/
scripts
/
frame_10
/
DoAction.as
Wrap
Text File
|
2015-04-27
|
2KB
|
71 lines
function initVariables()
{
gDernierSon = "";
gAnim = 1;
animNode = moduleInfo.returnNodeByPath("Module.Config.Animations");
gNbAnim = animNode.childNodes.length;
}
function animSuivante()
{
i = 0;
while(i < gListeBruitages.length - 1)
{
soundObjects[gListeBruitages[i]].stop();
i++;
}
gAnimSwf._visible = 0;
gAnim += 1;
gereTextes.videLM(_root);
delete gAnimSwf.anim.onEnterFrame;
gotoAndStop("relance_anim");
}
function testeFin()
{
if(gFin == 1)
{
trace("fini");
gotoAndStop("fin_anim");
gAnimSwf.anim.stop();
gAnimSwf.anim.compteur.stop();
BT_PLAY.pDepth = BT_PLAY.getDepth();
lDepth = _root.getNextHighestDepth();
BT_PLAY.swapDepths(lDepth);
BT_PLAY.onPress = function()
{
gFin = 0;
this.swapDepths(this.pDepth);
gAnimSwf._visible = 0;
initModule();
};
}
else if(gPriorite == "mp3")
{
animSuivante();
}
}
trace("HELLO");
initVariables();
BT_RETOUR.swapDepths(15700);
BT_RETOUR.onRollOver = function()
{
joueBruitage({nomSon:"B_RETOUR"});
gereCursor(2);
gereTextes.afficheIB({mc:this,codeIB:"IB100"});
this.gotoAndPlay("E2");
};
BT_RETOUR.onRollOut = function()
{
stopBruitage({nomSon:"B_RETOUR"});
gereCursor(1);
gereTextes.masqueIB({mc:this,codeIB:"IB100"});
this.gotoAndPlay("E1");
};
BT_RETOUR.onPress = function()
{
stopBruitage({nomSon:"B_RETOUR"});
gereCursor(1);
this.gotoAndPlay("E3");
_global.ChangeModule({codeRub:"BLA",numMod:0,A_GoLabel:"ATTENTE"});
};
play();