home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 130
/
MOBICLIC130.ISO
/
pc
/
DATA
/
BLA130
/
BLA130_01
/
BLA130_01.swf
/
scripts
/
frame_10
/
DoAction.as
Wrap
Text File
|
2010-12-13
|
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();