home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 141 / MOBICLIC141.ISO / mac / DATA / GAM141 / GAM141_00 / GAM141_00.swf / scripts / frame_2 / DoAction.as
Text File  |  2012-01-10  |  1KB  |  72 lines

  1. stop();
  2. trace("Frame INIT");
  3. _global.playSFX = function(sfx)
  4. {
  5.    _root.soundObjects[gBruitageName + sfx].start();
  6. };
  7. _global.setButRoll = function(obj, sfx, IB)
  8. {
  9.    obj.IB = IB;
  10.    obj.onRollOver = obj.onDragOver = function()
  11.    {
  12.       if(!isMSGBox)
  13.       {
  14.          if(gOnDir == "1")
  15.          {
  16.             getUrl("cursor2", "");
  17.          }
  18.          this.gotoAndPlay("E2");
  19.          playSFX(sfx);
  20.          if(this.IB !== undefined)
  21.          {
  22.             gereTextes.afficheIB(this,this.IB);
  23.          }
  24.       }
  25.    };
  26.    obj.onRollOut = obj.onDragOut = function()
  27.    {
  28.       if(gOnDir == "1")
  29.       {
  30.          getUrl("cursor1", "");
  31.       }
  32.       this.gotoAndPlay("E1");
  33.       if(this.IB !== undefined)
  34.       {
  35.          gereTextes.masqueIB();
  36.       }
  37.    };
  38. };
  39. _global.setButClick = function(obj)
  40. {
  41.    obj.onPress = function()
  42.    {
  43.       if(!isMSGBox)
  44.       {
  45.          this.gotoAndPlay("E3");
  46.       }
  47.    };
  48. };
  49. _global.stopIt = function(obj)
  50. {
  51.    obj.stop();
  52.    for(var _loc2_ in obj)
  53.    {
  54.       if(typeof obj[_loc2_] == "movieclip")
  55.       {
  56.          stopIt(obj[_loc2_]);
  57.       }
  58.    }
  59. };
  60. _global.playIt = function(obj)
  61. {
  62.    obj.play();
  63.    for(var _loc2_ in obj)
  64.    {
  65.       if(typeof obj[_loc2_] == "movieclip")
  66.       {
  67.          playIt(obj[_loc2_]);
  68.       }
  69.    }
  70. };
  71. InitOk();
  72.