home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 174 / MOBICLIC174.ISO / pc / DATA / MOB174 / MOB174_00 / MOB174_00.swf / scripts / frame_2 / DoAction.as
Text File  |  2015-04-27  |  5KB  |  146 lines

  1. function StopAll()
  2. {
  3.    clearInterval(_root.BoucleId);
  4. }
  5. stop();
  6. xGetConfig();
  7. xConfig.Set({nom:"DelaiFermeturePad",defaut:2,type:"number"});
  8. xConfig.Set({nom:"BullesVitesse",defaut:0.5,type:"number"});
  9. xConfig.Set({nom:"BullesFondLogoAlpha",defaut:80,type:"number"});
  10. xConfig.Set({nom:"BullesLogoGlow",defaut:"y"});
  11. xConfig.Set({nom:"BullesRollLogoGlow",defaut:"y"});
  12. xConfig.Set({nom:"BullesLogoGlowAlpha",defaut:100,type:"number"});
  13. xConfig.Set({nom:"BullesLogoGlowCouleur",defaut:16777215,type:"number"});
  14. xConfig.Set({nom:"BullesLogoGlowBlur",defaut:4,type:"number"});
  15. xConfig.Set({nom:"BullesLogoGlowStrengh",defaut:10,type:"number"});
  16. xConfig.Set({nom:"BullesLogoGlowCouleur",defaut:16777215,type:"number"});
  17. xConfig.Set({nom:"BullesTailleRoll",defaut:300,type:"number"});
  18. xConfig.Set({nom:"BullesCacheAsBitmap",defaut:"n"});
  19. xConfig.Set({nom:"AideBox_Level",defaut:50001,type:"number"});
  20. xConfig.Set({nom:"CourrierBox_Level",defaut:50002,type:"number"});
  21. xConfig.Set({nom:"MASCOTTES_FondLevel",defaut:49000,type:"number"});
  22. xConfig.Set({nom:"MASCOTTES_Level",defaut:49020,type:"number"});
  23. xConfig.Set({nom:"WIKI_RolloverLevel",defaut:10,type:"number"});
  24. xConfig.Set({nom:"SPAM_RolloverLevel",defaut:11,type:"number"});
  25. xConfig.Set({nom:"BUG_RolloverLevel",defaut:12,type:"number"});
  26. xConfig.Set({nom:"BULLE_RolloverLevel",defaut:49030,type:"number"});
  27. xConfig.Set({nom:"BULLE_RolloutTransitionLevel",defaut:49025,type:"number"});
  28. _global.gDataPath = _global.gDataPath != undefined ? _global.gDataPath : "../../";
  29. AideBox._visible = false;
  30. AideBox.swapDepths(_root.xConfig.AideBox_Level);
  31. AideBox.useHandCursor = true;
  32. AideBox.onPress = function()
  33. {
  34.    this._visible = false;
  35. };
  36. CourrierBox._visible = false;
  37. CourrierBox.swapDepths(_root.xConfig.CourrierBox_Level);
  38. CourrierBox.useHandCursor = false;
  39. CourrierBox.onPress = function()
  40. {
  41.    this._visible = false;
  42. };
  43. this.RetourBullesInit = function()
  44. {
  45.    prod.module.BulleSOM.AfficherBulles();
  46.    InitOk();
  47. };
  48. prod.module.BulleSOM.StartAll({vitesse:_root.xConfig.BullesVitesse,rayon:_root.xConfig.BullesRayon,fond_logo_alpha:_root.xConfig.BullesFondLogoAlpha});
  49. MASCOTTES_Fond.swapDepths(_root.xConfig.MASCOTTES_FondLevel);
  50. MASCOTTES.swapDepths(_root.xConfig.MASCOTTES_Level);
  51. InitMC({mc:MASCOTTES.WIKI});
  52. MASCOTTES.WIKI.OnPress = function()
  53. {
  54.    this.onRollOut();
  55.    _root.AideBox._visible = true;
  56. };
  57. MASCOTTES.WIKI.level_ori = MASCOTTES.WIKI.getDepth();
  58. MASCOTTES.WIKI.OnRollOver = function()
  59. {
  60.    this.swapDepths(_root.xConfig.WIKI_RolloverLevel);
  61. };
  62. MASCOTTES.WIKI.OnRollOut = function()
  63. {
  64.    this.swapDepths(this.level_ori);
  65.    this.gotoAndStop("E1");
  66.    stopComment();
  67. };
  68. MASCOTTES.WIKI.Fin_E2 = function()
  69. {
  70.    joueSon({nomSon:"WK_R",zapBlock:"NOZAP_NOBLOCK",actionFin:"WIKI_ROLLOUT"});
  71. };
  72. this.WIKI_ROLLOUT = function()
  73. {
  74.    MASCOTTES.WIKI.onRollOut();
  75. };
  76. InitMC({mc:MASCOTTES.SPAM});
  77. MASCOTTES.SPAM.DelaiAffichage = function()
  78. {
  79.    clearInterval(this.IntId);
  80.    if(_global.HOTE.ImprimerEcran())
  81.    {
  82.       _root.CourrierBox._visible = false;
  83.    }
  84.    else
  85.    {
  86.       _root.CourrierBox._visible = false;
  87.    }
  88. };
  89. MASCOTTES.SPAM.OnPress = function()
  90. {
  91.    this.onRollOut();
  92.    _root.CourrierBox._visible = true;
  93.    this.IntId = setInterval(this,"DelaiAffichage",100);
  94. };
  95. MASCOTTES.SPAM.level_ori = MASCOTTES.SPAM.getDepth();
  96. MASCOTTES.SPAM.OnRollOver = function()
  97. {
  98.    this.swapDepths(_root.xConfig.SPAM_RolloverLevel);
  99. };
  100. MASCOTTES.SPAM.OnRollOut = function()
  101. {
  102.    this.swapDepths(this.level_ori);
  103.    this.gotoAndStop("E1");
  104.    stopComment();
  105. };
  106. MASCOTTES.SPAM.Fin_E2 = function()
  107. {
  108.    joueSon({nomSon:"SP_R",zapBlock:"NOZAP_NOBLOCK",actionFin:"SPAM_ROLLOUT"});
  109. };
  110. this.SPAM_ROLLOUT = function()
  111. {
  112.    MASCOTTES.SPAM.onRollOut();
  113. };
  114. InitMC({mc:MASCOTTES.BUG});
  115. MASCOTTES.BUG.OnPress = function()
  116. {
  117.    this.onRollOut();
  118.    if(_root.xConfig.BugLien == undefined || _root.xConfig.BugLien == "")
  119.    {
  120.       getUrl("http://www.mobiclic.com", "_blank");
  121.    }
  122.    else
  123.    {
  124.       ChangeModule({codeRub:_root.xConfig.BugLien,numMod:0});
  125.    }
  126. };
  127. MASCOTTES.BUG.level_ori = MASCOTTES.BUG.getDepth();
  128. MASCOTTES.BUG.OnRollOver = function()
  129. {
  130.    this.swapDepths(_root.xConfig.BUG_RolloverLevel);
  131. };
  132. MASCOTTES.BUG.OnRollOut = function()
  133. {
  134.    this.swapDepths(this.level_ori);
  135.    this.gotoAndStop("E1");
  136.    stopComment();
  137. };
  138. MASCOTTES.BUG.Fin_E2 = function()
  139. {
  140.    joueSon({nomSon:"BG_R",zapBlock:"NOZAP_NOBLOCK",actionFin:"BUG_ROLLOUT"});
  141. };
  142. this.BUG_ROLLOUT = function()
  143. {
  144.    MASCOTTES.BUG.onRollOut();
  145. };
  146.