home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 130 / MOBICLIC130.ISO / pc / DATA / BLA130 / BLA130_01 / BLA130_01.swf / scripts / frame_10 / DoAction.as
Text File  |  2010-12-13  |  2KB  |  71 lines

  1. function initVariables()
  2. {
  3.    gDernierSon = "";
  4.    gAnim = 1;
  5.    animNode = moduleInfo.returnNodeByPath("Module.Config.Animations");
  6.    gNbAnim = animNode.childNodes.length;
  7. }
  8. function animSuivante()
  9. {
  10.    i = 0;
  11.    while(i < gListeBruitages.length - 1)
  12.    {
  13.       soundObjects[gListeBruitages[i]].stop();
  14.       i++;
  15.    }
  16.    gAnimSwf._visible = 0;
  17.    gAnim += 1;
  18.    gereTextes.videLM(_root);
  19.    delete gAnimSwf.anim.onEnterFrame;
  20.    gotoAndStop("relance_anim");
  21. }
  22. function testeFin()
  23. {
  24.    if(gFin == 1)
  25.    {
  26.       trace("fini");
  27.       gotoAndStop("fin_anim");
  28.       gAnimSwf.anim.stop();
  29.       gAnimSwf.anim.compteur.stop();
  30.       BT_PLAY.pDepth = BT_PLAY.getDepth();
  31.       lDepth = _root.getNextHighestDepth();
  32.       BT_PLAY.swapDepths(lDepth);
  33.       BT_PLAY.onPress = function()
  34.       {
  35.          gFin = 0;
  36.          this.swapDepths(this.pDepth);
  37.          gAnimSwf._visible = 0;
  38.          initModule();
  39.       };
  40.    }
  41.    else if(gPriorite == "mp3")
  42.    {
  43.       animSuivante();
  44.    }
  45. }
  46. trace("HELLO");
  47. initVariables();
  48. BT_RETOUR.swapDepths(15700);
  49. BT_RETOUR.onRollOver = function()
  50. {
  51.    joueBruitage({nomSon:"B_RETOUR"});
  52.    gereCursor(2);
  53.    gereTextes.afficheIB({mc:this,codeIB:"IB100"});
  54.    this.gotoAndPlay("E2");
  55. };
  56. BT_RETOUR.onRollOut = function()
  57. {
  58.    stopBruitage({nomSon:"B_RETOUR"});
  59.    gereCursor(1);
  60.    gereTextes.masqueIB({mc:this,codeIB:"IB100"});
  61.    this.gotoAndPlay("E1");
  62. };
  63. BT_RETOUR.onPress = function()
  64. {
  65.    stopBruitage({nomSon:"B_RETOUR"});
  66.    gereCursor(1);
  67.    this.gotoAndPlay("E3");
  68.    _global.ChangeModule({codeRub:"BLA",numMod:0,A_GoLabel:"ATTENTE"});
  69. };
  70. play();
  71.