home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 144 / MOBICLIC144.ISO / mac / DATA / TST144 / TST144_00 / TST144_00.swf / scripts / frame_20 / DoAction.as
Text File  |  2012-04-23  |  1KB  |  54 lines

  1. function initTest()
  2. {
  3.    gListeReponseTest = [];
  4.    var _loc1_ = 0;
  5.    while(_loc1_ < gNbQuestionsTotal)
  6.    {
  7.       gListeReponseTest.push("O");
  8.       _loc1_ = _loc1_ + 1;
  9.    }
  10.    gListeReponseOrdre = [];
  11.    gNoQuestion = 0;
  12.    gTestFini = 0;
  13.    gPCent = undefined;
  14.    gTopDepart = true;
  15. }
  16. function fin_G()
  17. {
  18.    BT_G.gotoAndPlay("E3");
  19. }
  20. function fin_F()
  21. {
  22.    BT_F.gotoAndPlay("E3");
  23. }
  24. if(FOND2 !== undefined)
  25. {
  26.    if(FOND1._visible == false)
  27.    {
  28.       FOND1._visible = true;
  29.       FOND2._visible = false;
  30.    }
  31. }
  32. gereTextes.afficheLM({codeLM:"LM00"});
  33. onMcOver({mc:BT_G,codeIB:"IB_G",nomSonC:"00G",actionFin:"fin_G"});
  34. BT_G.onPress = function()
  35. {
  36.    onMcOut(this);
  37.    gSexe = "G";
  38.    initTest();
  39.    BT_F.gotoAndPlay("E4");
  40.    desactiveClip(BT_F);
  41.    desactiveClip(this);
  42. };
  43. onMcOver({mc:BT_F,codeIB:"IB_F",nomSonC:"00F",actionFin:"fin_F"});
  44. BT_F.onPress = function()
  45. {
  46.    onMcOut(this);
  47.    gSexe = "F";
  48.    initTest();
  49.    BT_G.gotoAndPlay("E4");
  50.    desactiveClip(BT_G);
  51.    desactiveClip(this);
  52. };
  53. stop();
  54.