home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 136
/
MOBICLIC136.ISO
/
pc
/
DATA
/
ENG136
/
ENG136_00
/
ENG136_00.swf
/
scripts
/
frame_139
/
DoAction.as
Wrap
Text File
|
2011-07-20
|
6KB
|
217 lines
function initDialog()
{
etatPlay = 1;
DIALOG.BT_PLAY_PAUSE.gotoAndStop("E2");
DIALOG.BT_FERMER.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_FERMER"});
gereTextes.afficheIB({codeIB:"IB_CLOSE",mc:this});
};
DIALOG.BT_FERMER.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_FERMER"});
gereTextes.masqueIB();
};
DIALOG.BT_FERMER.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_FERMER"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
joueBruitage({nomSon:"B_DIA_INTRO"});
_root.DIALOG.gotoAndPlay("FIN_FADE");
};
DIALOG.BT_BEGIN.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_BEGIN"});
gereTextes.afficheIB({codeIB:"IB_BEGIN",mc:this});
};
DIALOG.BT_BEGIN.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_BEGIN"});
gereTextes.masqueIB();
};
DIALOG.BT_BEGIN.onPress = function()
{
_root.gNextLabel = undefined;
gereCursor(1);
stopBruitage({nomSon:"B_BEGIN"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
this._parent.BT_PLAY_PAUSE.gotoAndStop("E2");
_root.etatPlay = 1;
this._parent.gotoAndPlay("ANIM_02");
};
DIALOG.BT_PLAY_PAUSE.onRollOver = function()
{
gereCursor(2);
this.BT.gotoAndStop("E2");
switch(_root.etatPlay)
{
case 0:
joueBruitage({nomSon:"B_PLAY"});
gereTextes.afficheIB({codeIB:"IB_PLAY",mc:this});
break;
case 1:
joueBruitage({nomSon:"B_PAUSE"});
gereTextes.afficheIB({codeIB:"IB_PAUSE",mc:this});
}
};
DIALOG.BT_PLAY_PAUSE.onRollOut = function()
{
gereCursor(1);
this.BT.gotoAndStop("E1");
stopBruitage({nomSon:"B_PLAY"});
stopBruitage({nomSon:"B_PAUSE"});
gereTextes.masqueIB();
};
DIALOG.BT_PLAY_PAUSE.onPress = function()
{
_root.gNextLabel = undefined;
gereCursor(1);
stopBruitage({nomSon:"B_PLAY"});
stopBruitage({nomSon:"B_PAUSE"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
switch(_root.etatPlay)
{
case 1:
trace("_root.dialogEcran " + _root.dialogEcran);
this.gotoAndStop("E1");
etatPlay = 0;
this._parent.gotoAndStop(_root.dialogEcran);
break;
case 0:
this.gotoAndStop("E2");
etatPlay = 1;
this._parent.play();
}
};
DIALOG.BT_RWD.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_RWD"});
gereTextes.afficheIB({codeIB:"IB_PREV",mc:this});
};
DIALOG.BT_RWD.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_RWD"});
gereTextes.masqueIB();
};
DIALOG.BT_RWD.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_RWD"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
_root.DIALOG.LM_LMT.texte.text = "";
var _loc2_ = Number(_root.dialogEcran.split("_")[1]);
if(_loc2_ > 2)
{
if(etatPlay == 1)
{
_root.DIALOG.gotoAndPlay("ANIM_" + gimme2digits(_loc2_ - 1));
}
else
{
_root.DIALOG.gotoAndStop("ANIM_" + gimme2digits(_loc2_ - 1));
}
}
};
DIALOG.BT_FWD.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_FWD"});
gereTextes.afficheIB({codeIB:"IB_NEXT",mc:this});
};
DIALOG.BT_FWD.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_FWD"});
gereTextes.masqueIB();
};
DIALOG.BT_FWD.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_FWD"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
_root.DIALOG.LM_LMT.texte.text = "";
var _loc2_ = Number(_root.dialogEcran.split("_")[1]);
if(_loc2_ < _root.totalDialogue)
{
if(etatPlay == 1)
{
_root.DIALOG.gotoAndPlay("ANIM_" + gimme2digits(_loc2_ + 1));
}
else
{
_root.DIALOG.gotoAndStop("ANIM_" + gimme2digits(_loc2_ + 1));
}
}
};
DIALOG.BT_LM.onRollOver = function()
{
this.useHandCursor = 0;
if(_root.DIALOG.LM_LMT._visible == 0)
{
joueBruitage({nomSon:"B_AFFLM"});
gereTextes.afficheIB({codeIB:"IB_AFFLM",mc:this});
this.useHandCursor = 1;
gereCursor(2);
this.gotoAndStop("E2");
}
};
DIALOG.BT_LM.onRollOut = function()
{
if(_root.DIALOG.LM_LMT._visible == 0)
{
stopBruitage({nomSon:"B_AFFLM"});
gereCursor(1);
this.gotoAndStop("E1");
gereTextes.masqueIB();
}
};
DIALOG.BT_LM.onPress = function()
{
if(_root.DIALOG.LM_LMT._visible == 0)
{
stopBruitage({nomSon:"B_AFFLM"});
gereCursor(1);
this.gotoAndStop("E1");
_root.DIALOG.LM_LMT._visible = 1;
gereTextes.masqueIB();
}
};
}
totalDialogue = 22;
stop();