home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 174
/
MOBICLIC174.ISO
/
mac
/
DATA
/
DSS174
/
DSS174_09
/
DSS174_09.swf
/
scripts
/
frame_10
/
DoAction.as
< prev
Wrap
Text File
|
2015-04-27
|
2KB
|
80 lines
function initBT_RETOUR()
{
trace("INIT RET");
IB_RET.texte.embedFonts = true;
IB_RET._visible = 0;
_root.IB_RET.texte.text = getTextById(nodeIB,"IB_RET");
BT_RETOUR.swapDepths(15549);
var _loc3_ = this.BT_RETOUR;
_loc3_.onRollOver = function()
{
joueBruitage({nomSon:"B_RET"});
_root.IB_RET._visible = 1;
this.gotoAndPlay("E2");
gereCursor(2);
};
_loc3_.onRollOut = _loc3_.onDragOut = function()
{
stopBruitage({nomSon:"B_RETOUR"});
gereTextes.masqueIB({mc:this,codeIB:"IB_RET"});
this.gotoAndPlay("E1");
_root.IB_RET._visible = 0;
gereCursor(1);
};
_loc3_.onPress = function()
{
gZone = this.pNum;
stopBruitage({nomSon:"B_RETOUR"});
_root.IB_RET._visible = 0;
gereTextes.masqueIB({mc:this,codeIB:"IB_RET"});
_root.goDSSSommaire();
};
}
function goDSSSommaire()
{
trace("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX goDSSSommaire");
_global.ChangeModule({codeRub:"DSS",numMod:0,A_GoLabel:"ATTENTE",fromModule:true});
}
function getTextById(myXML, attributeValue)
{
myStyle = undefined;
myText = undefined;
myText = this.recusiveGetTextByAttribute(myXML,"id",attributeValue);
if(myText == undefined)
{
trace(attributeValue + " n\'existe pas dans XML");
}
return myText;
}
function recusiveGetTextByAttribute(node, attribute, attributeValue)
{
var _loc2_ = 0;
while(_loc2_ < node.childNodes.length)
{
if(node.childNodes[_loc2_].attributes[attribute] == attributeValue)
{
myText = node.childNodes[_loc2_].firstChild.nodeValue;
if(node.childNodes[_loc2_].attributes.style !== undefined)
{
myStyle = node.childNodes[_loc2_].attributes.style;
}
break;
}
if(node.childNodes[_loc2_].hasChildNodes())
{
this.recusiveGetTextByAttribute(node.childNodes[_loc2_],attribute,attributeValue);
}
_loc2_ = _loc2_ + 1;
}
return myText;
}
trace("FRAME START");
NomModuleTxt.text = gModuleName;
nodeIB = moduleInfo.returnNodeByPath("Module.FR.InfoBulles");
nodeLM = moduleInfo.returnNodeByPath("Module.FR.LegendesMedias");
initBT_RETOUR();
_root.StopAll = function()
{
trace("QUIT VERS SOMMAIRE");
};