home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 151 / MOBICLIC151.ISO / mac / DATA / GEN151 / GEN151_00 / GEN151_00.swf / scripts / frame_5 / DoAction.as
Text File  |  2013-01-17  |  3KB  |  89 lines

  1. function INIT_INTERFACE(intLabel)
  2. {
  3.    trace("INT A_" + gModuleName + "_interface");
  4.    Interface = Interface["A_" + gModuleName + "_interface"];
  5.    Interface.gotoAndPlay(intLabel);
  6.    Interface._visible = 1;
  7.    _global.BT_OEIL = Interface.BT_OEIL;
  8.    _global.ActiveOEIL = ActiveOEIL;
  9.    _root.ActiveOEIL = ActiveOEIL;
  10.    _global.DesactiveOEIL = DesactiveOEIL;
  11.    _root.DesactiveOEIL = DesactiveOEIL;
  12.    _root.OEILCLIC = 0;
  13. }
  14. function DesactiveOEIL()
  15. {
  16.    trace("DesactiveOEIL");
  17.    BT_OEIL.useHandCursor = false;
  18.    BT_OEIL.gOEILactif = 0;
  19. }
  20. function ActiveOEIL()
  21. {
  22.    trace("ActiveOEIL");
  23.    BT_OEIL.useHandCursor = true;
  24.    BT_OEIL.gOEILactif = 1;
  25. }
  26. function StopAll()
  27. {
  28.    trace("STOP__ALL " + BulleGEN);
  29.    soundObjects[listMusicKA[0]].stop();
  30.    soundObjects[listMusicKA[1]].stop();
  31.    clearInterval(intervalScrollbar);
  32.    clearInterval(_root.BoucleId);
  33. }
  34. function ModulePause()
  35. {
  36. }
  37. function ModuleResume()
  38. {
  39. }
  40. function AfficherGags()
  41. {
  42.    _root.swfStocker["A_" + _root.gModuleName + "_GAG_" + _root.gimme2digits(no_gag)]._visible = false;
  43.    no_gag = no_gag + 1 <= nb_gags_max ? no_gag + 1 : 1;
  44.    _root.swfStocker["A_" + _root.gModuleName + "_GAG_" + _root.gimme2digits(no_gag)].gotoAndPlay(2);
  45.    _root.swfStocker["A_" + _root.gModuleName + "_GAG_" + _root.gimme2digits(no_gag)]._visible = true;
  46. }
  47. trace("FONCTIONS : COMMUN_KAR");
  48. trace("init.as");
  49. _global.xGetConfig();
  50. this.xConfig.Set({nom:"AnimsWidth",defaut:"556",type:"number"});
  51. this.xConfig.Set({nom:"AnimsHeight",defaut:"346",type:"number"});
  52. this.xConfig.Set({nom:"AnimsX",defaut:"-4",type:"number"});
  53. this.xConfig.Set({nom:"Animsy",defaut:"-4",type:"number"});
  54. xConfig.Set({nom:"DelaiFermeturePad",defaut:2,type:"number"});
  55. xConfig.Set({nom:"BullesVitesse",defaut:0.5,type:"number"});
  56. xConfig.Set({nom:"BullesTailleRoll",defaut:300,type:"number"});
  57. xConfig.Set({nom:"BullesCacheAsBitmap",defaut:"n"});
  58. xConfig.Set({nom:"AideBox_Level",defaut:50001,type:"number"});
  59. xConfig.Set({nom:"CourrierBox_Level",defaut:50002,type:"number"});
  60. xConfig.Set({nom:"MASCOTTES_FondLevel",defaut:49000,type:"number"});
  61. xConfig.Set({nom:"MASCOTTES_Level",defaut:49020,type:"number"});
  62. xConfig.Set({nom:"WIKI_RolloverLevel",defaut:10,type:"number"});
  63. xConfig.Set({nom:"SPAM_RolloverLevel",defaut:11,type:"number"});
  64. xConfig.Set({nom:"BUG_RolloverLevel",defaut:12,type:"number"});
  65. xConfig.Set({nom:"BULLE_RolloverLevel",defaut:49030,type:"number"});
  66. xConfig.Set({nom:"BULLE_RolloutTransitionLevel",defaut:49025,type:"number"});
  67. xConfig.Set({nom:"BullesFixes",defaut:"true",type:"boolean",desc:"true|false Bulles fixes"});
  68. xConfig.ToXml();
  69. _global.gDataPath = _global.gDataPath != undefined ? _global.gDataPath : "../../";
  70. var no_gag = 0;
  71. var nb_gags_max = 13;
  72. this.RetourBullesInit = function()
  73. {
  74.    trace("RetourBullesInit");
  75.    prod.module.BulleGEN.AfficherBulles();
  76.    InitOk();
  77. };
  78. prod.module.BulleGEN.StartAll({vitesse:_root.xConfig.BullesVitesse,rayon:_root.xConfig.BullesRayon,fond_logo_alpha:_root.xConfig.BullesFondLogoAlpha,zone_limites:_root.ZONE_BULLES,no_roll:true,bullesFixes:_root.xConfig.BullesFixes});
  79. _root.CLIC_QUITTER.onPress = function()
  80. {
  81.    _global.HOTE.Quitter();
  82. };
  83. if(_global.HOTE == undefined)
  84. {
  85.    changeMusicOn(1);
  86. }
  87. changeMusicOn(0);
  88. stop();
  89.