home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 127
/
MOBICLIC127.ISO
/
mac
/
DATA
/
DSS127
/
DSS127_03
/
DSS127_03.swf
/
scripts
/
frame_60
/
DoAction.as
Wrap
Text File
|
2010-09-13
|
1KB
|
71 lines
function relanceInterval()
{
clearInterval(intervalPlanet);
intervalPlanet = setInterval(this,"checkPlanet",3000);
}
function checkPlanet()
{
clearInterval(intervalPlanet);
switch(planet)
{
case 1:
joueSon({nomSon:"01_02_E1",actionFin:"RIEN"});
break;
case 2:
zappPlanet();
ZONE_01_02.ANIM.play();
joueSon({nomSon:"01_02_S",actionFin:"suitePlanet"});
break;
case 3:
joueSon({nomSon:"01_02_E2",actionFin:"RIEN"});
}
}
function suitePlanet()
{
gotoAndStop("CHOIX_ORBITE");
}
joueBruitage({nomSon:"B_FEN"});
BT_X._visible = 0;
gereTextes.afficheLM({codeLM:"LM_JEU_01"});
gereTextes.afficheLM({codeLM:"LM_JEU_02"});
gereTextes.afficheLM({codeLM:"LM_JEU_03"});
LM_JEU_02._alpha = 0;
LM_JEU_03._alpha = 0;
planet = 1;
ZONE_01_01.gotoAndStop("E1");
ZONE_01_02.onRollOver = function()
{
gereCursor(2);
};
ZONE_01_02.onRollOut = function()
{
gereCursor(1);
};
ZONE_01_02.onPress = function()
{
gereCursor(1);
_root.relanceInterval();
if(_root.planet < 3)
{
planet += 1;
}
else
{
planet = 1;
}
this.gotoAndStop("E" + planet);
};
zappPlanet = function()
{
ZONE_01_02.onRollOver = function()
{
};
ZONE_01_02.onRollOut = function()
{
};
ZONE_01_02.onPress = function()
{
};
};
stop();