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

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