home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / TheBearsAdventure.swf / scripts / frame_15 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  805 b   |  35 lines

  1. _quality = "HIGH";
  2. BuyData = new LoadVars();
  3. BuyData.load("custom.txt");
  4. BuyData.onLoad = function(success)
  5. {
  6.    custom_logo._x += Number(BuyData.logo_dx);
  7.    custom_logo._y += Number(BuyData.logo_dy);
  8.    custom_logo.loadMovie(BuyData.logo);
  9. };
  10. custom_link.onRelease = function()
  11. {
  12.    if(BuyData.loaded)
  13.    {
  14.       if(BuyData.logo_link != "")
  15.       {
  16.          getURL(BuyData.logo_link,"_blank");
  17.       }
  18.    }
  19. };
  20. buy_button.onPress = SoundClickButton;
  21. buy_button.onRollOver = SoundActivateButton;
  22. later_button.onRelease = function()
  23. {
  24.    gotoAndPlay(first_game_frame + 3);
  25. };
  26. buy_button.onRelease = function()
  27. {
  28.    if(BuyData.loaded)
  29.    {
  30.       getURL(BuyData.link,"_blank");
  31.    }
  32. };
  33. later_button.onPress = SoundClickButton;
  34. later_button.onRollOver = SoundActivateButton;
  35.