home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / small_my_fart.swf / scripts / DefineSprite_290 / frame_2 / DoAction.as
Encoding:
Text File  |  2008-09-02  |  3.5 KB  |  156 lines

  1. i = random(12);
  2. if(gogo == 1)
  3. {
  4.    if(_root.power_mc._width > 5)
  5.    {
  6.       var expl = _root.attachMovie("blast","blast",1);
  7.       i = 12;
  8.       expl._x = _X;
  9.       expl._y = _Y;
  10.       expl.follow = this;
  11.       expl.onEnterFrame = function()
  12.       {
  13.          this._rotation = this.follow._rotation;
  14.          this._x = this.follow._x;
  15.          this._y = this.follow._y;
  16.       };
  17.       gogo = 0;
  18.    }
  19. }
  20. if(go == 1)
  21. {
  22.    if(_root.power_mc._width > 5)
  23.    {
  24.       if(_root.muteSound == 1)
  25.       {
  26.          go = 0;
  27.       }
  28.    }
  29. }
  30. if(_root.muteSound == 0)
  31. {
  32.    if(_root.power_mc._width > 5)
  33.    {
  34.       if(go == 1)
  35.       {
  36.          if(i == 0)
  37.          {
  38.             _root.fart1Sound.onSoundComplete = function()
  39.             {
  40.                go = 1;
  41.             };
  42.             _root.fart1Sound.start(0,1);
  43.             go = 0;
  44.          }
  45.          if(i == 1)
  46.          {
  47.             _root.fart2Sound.onSoundComplete = function()
  48.             {
  49.                go = 1;
  50.             };
  51.             _root.fart2Sound.start(0,1);
  52.             go = 0;
  53.          }
  54.          if(i == 2)
  55.          {
  56.             _root.fart3Sound.onSoundComplete = function()
  57.             {
  58.                go = 1;
  59.             };
  60.             _root.fart3Sound.start(0,1);
  61.             go = 0;
  62.          }
  63.          if(i == 3)
  64.          {
  65.             _root.fart4Sound.onSoundComplete = function()
  66.             {
  67.                go = 1;
  68.             };
  69.             _root.fart4Sound.start(0,1);
  70.             go = 0;
  71.          }
  72.          if(i == 4)
  73.          {
  74.             _root.fart5Sound.onSoundComplete = function()
  75.             {
  76.                go = 1;
  77.             };
  78.             _root.fart5Sound.start(0,1);
  79.             go = 0;
  80.          }
  81.          if(i == 5)
  82.          {
  83.             _root.fart6Sound.onSoundComplete = function()
  84.             {
  85.                go = 1;
  86.             };
  87.             _root.fart6Sound.start(0,1);
  88.             go = 0;
  89.          }
  90.          if(i == 6)
  91.          {
  92.             _root.fart7Sound.onSoundComplete = function()
  93.             {
  94.                go = 1;
  95.             };
  96.             _root.fart7Sound.start(0,1);
  97.             go = 0;
  98.          }
  99.          if(i == 7)
  100.          {
  101.             _root.fart8Sound.onSoundComplete = function()
  102.             {
  103.                go = 1;
  104.             };
  105.             _root.fart8Sound.start(0,1);
  106.             go = 0;
  107.          }
  108.          if(i == 8)
  109.          {
  110.             _root.fart9Sound.onSoundComplete = function()
  111.             {
  112.                go = 1;
  113.             };
  114.             _root.fart9Sound.start(0,1);
  115.             go = 0;
  116.          }
  117.          if(i == 9)
  118.          {
  119.             _root.fart10Sound.onSoundComplete = function()
  120.             {
  121.                go = 1;
  122.             };
  123.             _root.fart10Sound.start(0,1);
  124.             go = 0;
  125.          }
  126.          if(i == 10)
  127.          {
  128.             _root.fart11Sound.onSoundComplete = function()
  129.             {
  130.                go = 1;
  131.             };
  132.             _root.fart11Sound.start(0,1);
  133.             go = 0;
  134.          }
  135.          if(i == 11)
  136.          {
  137.             _root.fart12Sound.onSoundComplete = function()
  138.             {
  139.                go = 1;
  140.             };
  141.             _root.fart12Sound.start(0,1);
  142.             go = 0;
  143.          }
  144.          if(i == 12)
  145.          {
  146.             _root.startFart.onSoundComplete = function()
  147.             {
  148.                go = 1;
  149.             };
  150.             _root.startFart.start(0);
  151.             go = 0;
  152.          }
  153.       }
  154.    }
  155. }
  156.