home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / crazycube.swf / scripts / DefineSprite_136 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  718 b   |  40 lines

  1. function hide()
  2. {
  3.    _parent.sound_UP_DOWN(true);
  4.    this._visible = false;
  5. }
  6. function show()
  7. {
  8.    _parent.sound_UP_DOWN(false);
  9.    this._visible = true;
  10. }
  11. hide();
  12. this.refreshCub.onRelease = function()
  13. {
  14.    if(!_root.level_complete)
  15.    {
  16.       _parent.oScene.refreshScene();
  17.    }
  18. };
  19. this.undoCub.onRelease = function()
  20. {
  21.    if(!_root.level_complete)
  22.    {
  23.       _parent.oScene.undo();
  24.    }
  25. };
  26. endGames = function()
  27. {
  28.    delete _parent.engine.onEnterFrame;
  29.    _parent.oScene.deleteCub();
  30.    hide();
  31.    _parent.menu.showWon();
  32. };
  33. this.mainMenu.onRelease = function()
  34. {
  35.    delete _parent.engine.onEnterFrame;
  36.    _parent.oScene.deleteCub();
  37.    hide();
  38.    _parent.menu.showExit();
  39. };
  40.