home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / tunnelrush.swf / scripts / DefineSprite_18_Wall / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-12  |  750 b   |  43 lines

  1. if(!big)
  2. {
  3.    _X = 425;
  4.    _Y = _root.WallHold["Wall" + myPrev]._y + random(26) - 12.5;
  5.    _root.WallHold2["Wall" + mine]._y = _Y;
  6.    if(_Y < -150)
  7.    {
  8.       _Y = -150;
  9.    }
  10.    else if(_Y > 150)
  11.    {
  12.       _Y = 150;
  13.    }
  14.    piece1._y += _root.distance / 2;
  15.    piece2._y -= _root.distance / 2;
  16.    onEnterFrame = function()
  17.    {
  18.       if(!_root.dead)
  19.       {
  20.          if(_X < -400)
  21.          {
  22.             this.removeMovieClip();
  23.          }
  24.       }
  25.    };
  26. }
  27. else
  28. {
  29.    piece1._y += _root.distance / 2;
  30.    piece2._y -= _root.distance / 2;
  31.    _X = 425;
  32.    onEnterFrame = function()
  33.    {
  34.       if(!_root.dead)
  35.       {
  36.          if(_X < -400)
  37.          {
  38.             this.removeMovieClip();
  39.          }
  40.       }
  41.    };
  42. }
  43.