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   
Text File  |  2015-04-27  |  2KB  |  80 lines

  1. function initBT_RETOUR()
  2. {
  3.    trace("INIT RET");
  4.    IB_RET.texte.embedFonts = true;
  5.    IB_RET._visible = 0;
  6.    _root.IB_RET.texte.text = getTextById(nodeIB,"IB_RET");
  7.    BT_RETOUR.swapDepths(15549);
  8.    var _loc3_ = this.BT_RETOUR;
  9.    _loc3_.onRollOver = function()
  10.    {
  11.       joueBruitage({nomSon:"B_RET"});
  12.       _root.IB_RET._visible = 1;
  13.       this.gotoAndPlay("E2");
  14.       gereCursor(2);
  15.    };
  16.    _loc3_.onRollOut = _loc3_.onDragOut = function()
  17.    {
  18.       stopBruitage({nomSon:"B_RETOUR"});
  19.       gereTextes.masqueIB({mc:this,codeIB:"IB_RET"});
  20.       this.gotoAndPlay("E1");
  21.       _root.IB_RET._visible = 0;
  22.       gereCursor(1);
  23.    };
  24.    _loc3_.onPress = function()
  25.    {
  26.       gZone = this.pNum;
  27.       stopBruitage({nomSon:"B_RETOUR"});
  28.       _root.IB_RET._visible = 0;
  29.       gereTextes.masqueIB({mc:this,codeIB:"IB_RET"});
  30.       _root.goDSSSommaire();
  31.    };
  32. }
  33. function goDSSSommaire()
  34. {
  35.    trace("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX     goDSSSommaire");
  36.    _global.ChangeModule({codeRub:"DSS",numMod:0,A_GoLabel:"ATTENTE",fromModule:true});
  37. }
  38. function getTextById(myXML, attributeValue)
  39. {
  40.    myStyle = undefined;
  41.    myText = undefined;
  42.    myText = this.recusiveGetTextByAttribute(myXML,"id",attributeValue);
  43.    if(myText == undefined)
  44.    {
  45.       trace(attributeValue + " n\'existe pas dans XML");
  46.    }
  47.    return myText;
  48. }
  49. function recusiveGetTextByAttribute(node, attribute, attributeValue)
  50. {
  51.    var _loc2_ = 0;
  52.    while(_loc2_ < node.childNodes.length)
  53.    {
  54.       if(node.childNodes[_loc2_].attributes[attribute] == attributeValue)
  55.       {
  56.          myText = node.childNodes[_loc2_].firstChild.nodeValue;
  57.          if(node.childNodes[_loc2_].attributes.style !== undefined)
  58.          {
  59.             myStyle = node.childNodes[_loc2_].attributes.style;
  60.          }
  61.          break;
  62.       }
  63.       if(node.childNodes[_loc2_].hasChildNodes())
  64.       {
  65.          this.recusiveGetTextByAttribute(node.childNodes[_loc2_],attribute,attributeValue);
  66.       }
  67.       _loc2_ = _loc2_ + 1;
  68.    }
  69.    return myText;
  70. }
  71. trace("FRAME START");
  72. NomModuleTxt.text = gModuleName;
  73. nodeIB = moduleInfo.returnNodeByPath("Module.FR.InfoBulles");
  74. nodeLM = moduleInfo.returnNodeByPath("Module.FR.LegendesMedias");
  75. initBT_RETOUR();
  76. _root.StopAll = function()
  77. {
  78.    trace("QUIT VERS SOMMAIRE");
  79. };
  80.