home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / MiniclipsTetris.swf / scripts / DefineSprite_185 / frame_26 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  456 b   |  33 lines

  1. if(dir eq "r")
  2. {
  3.    col++;
  4.    if(right < col)
  5.    {
  6.       dir = "l";
  7.       row++;
  8.    }
  9. }
  10. else
  11. {
  12.    col--;
  13.    if(col < 1)
  14.    {
  15.       dir = "r";
  16.       row++;
  17.    }
  18. }
  19. if(bottom >= row)
  20. {
  21.    eval("_parent.Box" + col + "_" + row).gotoAndStop(brickType);
  22.    eval("_parent.Box" + col + "_" + row).filled = false;
  23. }
  24. else
  25. {
  26.    if(!screenFilled)
  27.    {
  28.       _parent.showTitle();
  29.    }
  30.    gotoAndStop(1);
  31. }
  32. gotoAndPlay(_currentframe - 1);
  33.