home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 130 / MOBICLIC130.ISO / pc / DATA / GEN130 / GEN130_00 / GEN130_00.swf / scripts / frame_11 / DoAction.as
Text File  |  2010-12-13  |  1KB  |  55 lines

  1. function OeilFerme()
  2. {
  3.    _root.gotoAndStop("ATTENTE");
  4. }
  5. trace("freame strt");
  6. AfficherGags();
  7. _root.changeMusicOn(0);
  8. var nom_du_son = "TITRE";
  9. gNextLabel = "DEMO";
  10. gereTextes.afficheLM({codeLM:"LM00"});
  11. LM00.swapDepths(16000);
  12. anim00();
  13. initKAParoles();
  14. initKABoutons();
  15. initPrintBoutons();
  16. var ratio = MASQUE_ANIM._height / MASQUE_ANIM._width;
  17. var ratio1 = animsHeight / animsWidth;
  18. var ratio2 = animsWidth / MASQUE_ANIM._width;
  19. var ratio3 = animsHeight / MASQUE_ANIM._height;
  20. if(ratio1 <= ratio)
  21. {
  22.    ANIMKAR._xscale = 100 / ratio3;
  23.    ANIMKAR._yscale = 100 / ratio3;
  24.    ANIMKAR.H = MASQUE_ANIM._height;
  25.    ANIMKAR.W = animsWidth / ratio3;
  26. }
  27. else
  28. {
  29.    ANIMKAR._xscale = 100 / ratio2;
  30.    ANIMKAR._yscale = 100 / ratio2;
  31.    ANIMKAR.H = animsHeight / ratio2;
  32.    ANIMKAR.W = MASQUE_ANIM._width;
  33. }
  34. ANIMKAR._x = animsX;
  35. ANIMKAR._y = animsY;
  36. MASQUE_ANIM._width = ANIMKAR.W;
  37. MASQUE_ANIM._height = ANIMKAR.H;
  38. MASQUE_ANIM._x = ANIMKAR._x;
  39. MASQUE_ANIM._y = ANIMKAR._y;
  40. trace("*/*/ " + MASQUE_ANIM._x + " " + MASQUE_ANIM._y + " " + MASQUE_ANIM._width + " " + MASQUE_ANIM._height);
  41. _root.musicChoix = "ECOUTE_01";
  42. switch(_root.musicChoix)
  43. {
  44.    case "ECOUTE_01":
  45.       _root.Interface.CHANTE_01.gotoAndStop("E1");
  46.       gMusicKA = 0;
  47.       playMusic();
  48.       break;
  49.    case "CHANTE_01":
  50.       _root.Interface.ECOUTE_01.gotoAndStop("E1");
  51.       gMusicKA = 1;
  52.       playMusic();
  53. }
  54. stop();
  55.