home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 136 / MOBICLIC136.ISO / pc / DATA / ENG136 / ENG136_00 / ENG136_00.swf / scripts / frame_220 / DoAction.as
Text File  |  2011-07-20  |  825b  |  45 lines

  1. btn_vocab.onRollOver = function()
  2. {
  3.    this.useHandCursor = 1;
  4.    gereCursor(2);
  5.    this.gotoAndStop(2);
  6. };
  7. btn_vocab.onRollOut = function()
  8. {
  9.    gereCursor(1);
  10.    this.gotoAndStop(1);
  11. };
  12. btn_vocab.onRelease = function()
  13. {
  14.    gereCursor(1);
  15.    _root.vocabJeu = 1;
  16.    _root.gotoAndPlay("VOCAB");
  17. };
  18. btn_vocab.onReleaseOutside = function()
  19. {
  20.    gereCursor(1);
  21.    gereTextes.masqueIB();
  22. };
  23. trace("INITJEU");
  24. listBase = [];
  25. var i = 1;
  26. while(i <= nbZones)
  27. {
  28.    listBase.push(i);
  29.    i++;
  30. }
  31. _root.gListMots = [];
  32. var i = 0;
  33. while(i < nbZones)
  34. {
  35.    lElement = _root.randomValue(0,listBase.length - 1);
  36.    _root.gListMots.push(listBase[lElement]);
  37.    listBase.splice(lElement,1);
  38.    i++;
  39. }
  40. trace(gListMots);
  41. _root.gMot = 1;
  42. _root.gScore = 0;
  43. _root.gSerie = 1;
  44. _root.gotoAndPlay("ATTENTE");
  45.