home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 130
/
MOBICLIC130.ISO
/
pc
/
DATA
/
MOB130
/
MOB130_00
/
MOB130_00.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2010-12-13
|
6KB
|
272 lines
function testeDebutCommentSpecial()
{
switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
{
case "bz":
case "BZ":
trace("------- BZ on-----------");
DesactiveOEIL();
if(BT_OEIL.gEtat !== 3)
{
trace("E3");
BT_OEIL.gotoAndPlay("E3");
}
else
{
trace("PARLE");
BT_OEIL.OEIL_P.gotoAndPlay("parle");
}
break;
case "ze":
case "ZE":
trace("------- ZE on-----------");
DesactiveOEIL();
if(BT_OEIL.gEtat !== 3)
{
BT_OEIL.gotoAndPlay("E3");
}
else
{
BT_OEIL.OEIL_P.gotoAndPlay("parle");
}
afficherRolls();
}
}
function testeFinCommentSpecial()
{
switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
{
case "bz":
case "BZ":
trace("------- BZ off-----------");
ActiveOEIL();
BT_OEIL.OEIL_P.gotoAndPlay("rentre");
BT_OEIL.gClicOn = undefined;
break;
case "ze":
case "ZE":
trace("------- ZE off-----------");
ActiveOEIL();
BT_OEIL.OEIL_P.gotoAndPlay("rentre");
BT_OEIL.gClicOn = undefined;
masquerRolls();
}
}
function onMcOut(myMc)
{
gereCursor(1);
if(myMc.pLabelOut == undefined)
{
myMc.gotoAndPlay("E1");
}
else
{
myMc.gotoAndPlay(myMc.pLabelOut);
}
if(myMc.pSon.split("")[0] == "B")
{
stopBruitage({nomSon:myMc.pSon});
}
else
{
stopComment();
}
if(myMc.pIB !== undefined)
{
gereTextes.masqueIB();
}
}
function onMcOver(p)
{
var myMc = p.mc;
myMc.pIB = p.codeIB;
if(p.nomSon == undefined)
{
if(p.nomSonC == undefined)
{
myMc.pSon = "B_" + myMc._name.split("_")[1];
}
else
{
myMc.pSon = p.nomSonC;
}
}
else
{
myMc.pSon = p.nomSon;
}
if(p.actionFin == undefined)
{
myMc.actionFin = "RIEN";
}
else
{
myMc.actionFin = p.actionFin;
}
myMc.pLabelOut = p.mcLabelOut;
myMc.onRollOver = function()
{
gereCursor(2);
if(p.mcLabelIn == undefined)
{
this.gotoAndPlay("E2");
}
else
{
this.gotoAndPlay(p.mcLabelIn);
}
if(this.pSon.split("")[0] == "B")
{
joueBruitage({nomSon:this.pSon});
}
else
{
joueSon({nomSon:this.pSon,zapBlock:"NOZAP_NOBLOCK",actionFin:this.actionFin});
}
if(this.pIB !== undefined)
{
gereTextes.afficheIB({mc:this,codeIB:this.pIB});
}
};
myMc.onRollOut = myMc.onDragOut = function()
{
onMcOut(myMc);
};
}
function DesactiveBZ()
{
BT_BZ.useHandCursor = false;
BT_BZ.gBZactif = 0;
}
function ActiveBZ()
{
BT_BZ.useHandCursor = true;
BT_BZ.gBZactif = 1;
}
function initMoteur()
{
trace(" ____ __ initMoteur _ __ _");
var _loc4_ = this;
var _loc5_ = _loc4_.createEmptyMovieClip("_moteur_",this.getNextHighestDepth());
this.mclR = new MovieClipLoader();
var _loc3_ = this.prodPath + "/moteur.swf";
this.mclR.loadClip(_loc3_,_loc5_);
this.mclR.onLoadInit = function(myClip)
{
trace("onLoadInit _moteur_" + _root);
_root.ChargeMoteur();
};
}
function initLib(nom_lib)
{
trace(" ____ __ initLib _ __ _" + gHotePath);
var _loc4_ = this;
var _loc6_ = _loc4_.createEmptyMovieClip("_" + nom_lib + "_",this.getNextHighestDepth());
var _loc3_ = gLibsPath + "/" + nom_lib + "/" + nom_lib + ".swf";
this.mclR = new MovieClipLoader();
this.mclR.loadClip(_loc3_,_loc6_);
this.mclR.onLoadInit = function(myClip)
{
trace("onLoadInit " + myClip._name);
myClip.ChargeMoteur();
_root.Init();
};
}
function initModuleMoteur(nom_lib)
{
trace(" ____ __ initLib _ __ _" + gHotePath);
var _loc4_ = this;
var _loc5_ = _loc4_.createEmptyMovieClip("_" + nom_lib + "_",this.getNextHighestDepth());
var _loc3_ = this.gModulePath + nom_lib + ".swf";
this.mclR = new MovieClipLoader();
this.mclR.loadClip(_loc3_,_loc5_);
this.mclR.onLoadInit = function(myClip)
{
trace("onLoadInit " + myClip._name);
myClip.ChargeMoteur();
_root.Init();
};
}
stop();
this.SOMMAIRE = true;
this._lockroot = true;
this.prodVersion = "prod_gen_XB";
if(_global.gModulePath == undefined)
{
this.gModulePath = _global.gModulePath = "";
}
else
{
this.gModulePath = _global.gModulePath;
}
_global._MOD_ = this;
this.CIBLE = this;
if(_global.HOTE != undefined)
{
MovieClip.prototype.gHotePath = _global.gPARAMS.HOTE_DIR + "/DATA/HOTE";
}
else
{
MovieClip.prototype.gHotePath = "../../HOTE";
}
this.prodPath = gHotePath + "/" + this.prodVersion;
MovieClip.prototype.gLibsPath = gHotePath + "/libs";
_global.DesactiveBZ = DesactiveBZ;
_root.DesactiveBZ = DesactiveBZ;
_global.ActiveBZ = ActiveBZ;
_root.ActiveBZ = ActiveBZ;
this.initVariables = function()
{
trace("initVariables()");
this.gotoAndStop("INIT");
};
MovieClip.prototype._xtrace_ = undefined;
MovieClip.prototype._xlib1_ = undefined;
this._mod_.removeMovieClip();
this.Init = function()
{
trace(" ____ __ Init()__ _ __ _");
if(_xtrace_ == undefined)
{
initLib("xtrace");
return undefined;
}
if(_xlib1_ == undefined)
{
initLib("xlib1");
return undefined;
}
this.initMoteur();
};
this.InitOk = function()
{
trace("InitOk");
if(HOTE == undefined)
{
this.Start();
}
else
{
HOTE.InitFin(this);
}
};
this.Start = function()
{
gereCursor("fleche");
this.gotoAndStop("START");
};
if(HOTE == undefined)
{
this.onEnterFrame = function()
{
var _loc2_ = this.getBytesLoaded();
var _loc3_ = this.getBytesTotal();
if(_loc2_ >= _loc3_)
{
this.Init();
delete this.onEnterFrame;
}
};
}
stop();