home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 136 / MOBICLIC136.ISO / pc / DATA / TST136 / TST136_00 / TST136_00.swf / scripts / frame_51 / DoAction.as
Text File  |  2011-07-20  |  2KB  |  67 lines

  1. gNextLabel = "FIN";
  2. gBlockST = 1;
  3. joueSon({nomSon:"C" + gConclu});
  4. var XmlLM = this.moduleInfo.returnNodeByPath("Module." + gLangue + ".LegendesMedias");
  5. var _loc0_ = null;
  6. if((_loc0_ = gSexe) !== "F")
  7. {
  8.    gereTextes.afficheLM({codeLM:"LM_TC" + gConclu});
  9.    var pClip = this["LM_TC" + gConclu];
  10.    gereTextes.afficheLM({codeLM:"LM_C" + gConclu});
  11. }
  12. else
  13. {
  14.    if(gereTextes.getTextById(XmlLM,"LM_TC" + gConclu) !== undefined)
  15.    {
  16.       gereTextes.afficheLM({codeLM:"LM_TC" + gConclu});
  17.       var pClip = this["LM_TC" + gConclu];
  18.    }
  19.    else
  20.    {
  21.       gereTextes.afficheLM({codeLM:"LM_TC" + gConclu.split("")[0]});
  22.       var pClip = this["LM_TC" + gConclu.split("")[0]];
  23.    }
  24.    if(gereTextes.getTextById(XmlLM,"LM_C" + gConclu) !== undefined)
  25.    {
  26.       gereTextes.afficheLM({codeLM:"LM_C" + gConclu});
  27.    }
  28.    else
  29.    {
  30.       gereTextes.afficheLM({codeLM:"LM_C" + gConclu.split("")[0]});
  31.    }
  32. }
  33. var lH = 49.7;
  34. if(pClip.LM.texte._height < lH)
  35. {
  36.    pClip._y += 13;
  37. }
  38. gCadre = 0;
  39. if(gPCent < 20)
  40. {
  41.    this.CONCLU.gotoAndPlay("E4");
  42.    gCadre = 3;
  43. }
  44. else if(gPCent < 50)
  45. {
  46.    this.CONCLU.gotoAndPlay("E3");
  47.    gCadre = 2;
  48. }
  49. else if(gPCent < 80)
  50. {
  51.    this.CONCLU.gotoAndPlay("E2");
  52.    gCadre = 1;
  53. }
  54. var myClip = this.CONCLU.CONCLU.CONCLU.ACCUEIL;
  55. myClip.id = "A_" + gModuleName + "_CONCLU_" + gConclu;
  56. var swfHolderNom = myClip.createEmptyMovieClip("swfHolder",chercheDepthPlus(myClip,0));
  57. this.mclR_C_ = new MovieClipLoader();
  58. this.mclR_C_.loadClip(_global.gModulePath + moduleInfo.getResourceById(myClip.id).firstChild.attributes.src,swfHolderNom);
  59. this.mclR_C_.onLoadInit = function(lClip)
  60. {
  61.    cadreWidth = gListe_W_H[gCadre][0];
  62.    cadreHeight = gListe_W_H[gCadre][1];
  63.    adapteImage(lClip,1);
  64. };
  65. myClip._parent._parent.pCent.text = String(gPCent) + "%";
  66. stop();
  67.