home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 130 / MOBICLIC130.ISO / pc / DATA / MOB130 / MOB130_00 / MOB130_00.swf / scripts / frame_2 / DoAction.as
Text File  |  2010-12-13  |  5KB  |  156 lines

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