home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / TheBearsAdventure.swf / scripts / frame_9 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  1.1 KB  |  46 lines

  1. function SoundClickButton()
  2. {
  3.    if(!_level0.no_sound)
  4.    {
  5.       _level0.snds[_level0.snd_clickbutton].start();
  6.    }
  7. }
  8. function SoundActivateButton()
  9. {
  10.    if(!_level0.no_sound)
  11.    {
  12.       _level0.snds[_level0.snd_activatebutton].start();
  13.    }
  14. }
  15. _quality = "HIGH";
  16. BuyData = new LoadVars();
  17. BuyData.load("custom.txt");
  18. BuyData.onLoad = function(success)
  19. {
  20.    if(mid_logo._width == 0)
  21.    {
  22.       mid_logo._x += Number(BuyData.mid_logo_dx);
  23.       mid_logo._y += Number(BuyData.mid_logo_dy);
  24.       mid_logo.loadMovie(BuyData.mid_logo);
  25.    }
  26. };
  27. play_button.onRelease = function()
  28. {
  29.    first_time = false;
  30.    gotoAndPlay(first_game_frame);
  31. };
  32. play_button.onPress = SoundClickButton;
  33. play_button.onRollOver = SoundActivateButton;
  34. help_button.onRelease = function()
  35. {
  36.    gotoAndPlay(first_game_frame + 5);
  37. };
  38. help_button.onPress = SoundClickButton;
  39. help_button.onRollOver = SoundActivateButton;
  40. reg_button.onRelease = function()
  41. {
  42.    gotoAndPlay(first_game_frame + 9);
  43. };
  44. reg_button.onPress = SoundClickButton;
  45. reg_button.onRollOver = SoundActivateButton;
  46.