home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / allout.swf / scripts / DefineSprite_41 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-05-29  |  293 b   |  18 lines

  1. function Swap()
  2. {
  3.    if(status == 0)
  4.    {
  5.       _parent.puzzarray[y - 1][x - 1] = 1;
  6.       gotoAndPlay(4);
  7.    }
  8.    else
  9.    {
  10.       _parent.puzzarray[y - 1][x - 1] = 0;
  11.       gotoAndPlay(12);
  12.    }
  13. }
  14. status = 0;
  15. x = Number(_name.charAt(1));
  16. y = Number(_name.charAt(2));
  17. stop();
  18.