home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 136
/
MOBICLIC136.ISO
/
pc
/
DATA
/
ENG136
/
ENG136_00
/
ENG136_00.swf
/
scripts
/
frame_245
/
DoAction.as
Wrap
Text File
|
2011-07-20
|
1KB
|
45 lines
trace("STOP LIZZ PLEASE");
LIZZ.gotoAndStop("E2");
btn_relance.onRollOver = function()
{
gereCursor(2);
joueBruitage({nomSon:"B_DE"});
this.gotoAndStop(2);
};
btn_relance.onRollOut = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_DE"});
this.gotoAndStop(1);
};
btn_relance.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_DE"});
_root.gSerie += 1;
if(_root.gSerie > Math.floor(nbZones / 5))
{
listBase = [];
var _loc2_ = 1;
while(_loc2_ <= nbZones)
{
listBase.push(_loc2_);
_loc2_ = _loc2_ + 1;
}
_root.gListMots = [];
_loc2_ = 0;
while(_loc2_ < nbZones)
{
lElement = _root.randomValue(0,listBase.length - 1);
_root.gListMots.push(listBase[lElement]);
listBase.splice(lElement,1);
_loc2_ = _loc2_ + 1;
}
_root.gSerie = 1;
}
_root.gMot = 1;
_root.gScore = 0;
_root.gotoAndPlay("ATTENTE");
};
stop();