home *** CD-ROM | disk | FTP | other *** search
- if(dir eq "r")
- {
- if(right >= col)
- {
- col++;
- }
- else
- {
- col = right;
- right--;
- dir = "d";
- }
- }
- else if(dir eq "d")
- {
- if(bottom >= row)
- {
- row++;
- }
- else
- {
- row = bottom;
- bottom--;
- dir = "l";
- }
- }
- else if(dir eq "l")
- {
- if(col >= left)
- {
- col--;
- }
- else
- {
- col = left;
- left++;
- dir = "u";
- }
- }
- else if(dir eq "u")
- {
- if(top < row)
- {
- row--;
- }
- else
- {
- row = top + 1;
- top++;
- dir = "r";
- }
- }
- if(eval("_parent.Box" + col + "_" + row)._currentframe != brickType)
- {
- eval("_parent.Box" + col + "_" + row).gotoAndStop(brickType);
- eval("_parent.Box" + col + "_" + row).filled = false;
- count++;
- }
- if(total < count)
- {
- if(!screenFilled)
- {
- _parent.showTitle();
- }
- gotoAndStop(1);
- }
- gotoAndPlay(_currentframe - 1);
-