home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / mahjjong.swf / scripts / frame_9 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.0 KB  |  56 lines

  1. function changeFrames()
  2. {
  3.    gotoAndPlay(8);
  4. }
  5. endG.swapDepths(25000);
  6. endG.onRelease = function()
  7. {
  8.    clearInterval(timer.timeInt);
  9.    statBar.removeMovieClip();
  10.    back.removeMovieClip();
  11.    board.removeMovieClip();
  12.    confirm2.removeMovieClip();
  13.    bm.removeMovieClip();
  14.    confirm.removeMovieClip();
  15.    gotoAndPlay(12);
  16.    this.removeMovieClip();
  17. };
  18. hint.m = [];
  19. Key.addListener(keyListener);
  20. var backg = random(17);
  21. backg++;
  22. changeBack(backg);
  23. if(!rRT)
  24. {
  25.    createTileList();
  26. }
  27. copyTiles();
  28. createBoard();
  29. if(game.js)
  30. {
  31.    startTimer();
  32.    game.js = false;
  33. }
  34. else
  35. {
  36.    timer.timeInt = setInterval(updateTime,1000);
  37. }
  38. _root.attachMovie("statBar","statBar",9001);
  39. statBar._x = 211.4;
  40. statBar._y = 381;
  41. statBar.score.text = game.score;
  42. if(timer.second < 10)
  43. {
  44.    statBar.time.text = timer.minute + ":0" + timer.second;
  45. }
  46. else
  47. {
  48.    statBar.time.text = timer.minute + ":" + timer.second;
  49. }
  50. _root.hint.fHint = false;
  51. _root.hint.fAT = true;
  52. _root.onEnterFrame = function()
  53. {
  54. };
  55. stop();
  56.