home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / ninja_nightmare.swf / scripts / DefineSprite_965 / frame_12 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  2.2 KB  |  78 lines

  1. function show_prompt(high)
  2. {
  3.    btn_submit._visible = true;
  4.    btn_skip._visible = true;
  5.    if(high)
  6.    {
  7.       _root.eyeland_hs_currentmessage = _root.eyeland_hs_emailpromptmessage;
  8.    }
  9.    else
  10.    {
  11.       _root.eyeland_hs_currentmessage = _root.eyeland_hs_lowscoremessage.split("%").join(_root.eyeland_hs_lowscore);
  12.    }
  13.    if(_root.eyeland_hs_maxchars > 0)
  14.    {
  15.       if(_root.eyeland_hs_recordplayeremail == "yes" || _root.eyeland_hs_harvest_all_emails == "yes")
  16.       {
  17.          enter_screens.gotoAndPlay("enter_email");
  18.          enter_screens.field_email.holder.gotoAndPlay("field");
  19.       }
  20.       else
  21.       {
  22.          enter_screens.gotoAndPlay("enter");
  23.       }
  24.       if(_root.eyeland_hs_maxchars == 3)
  25.       {
  26.          enter_screens.name_label.gotoAndStop(2);
  27.       }
  28.       enter_screens.field_name.holder.gotoAndPlay("name" + _root.eyeland_hs_maxchars);
  29.    }
  30.    else if(_root.eyeland_hs_recordplayeremail == "yes" || _root.eyeland_hs_harvest_all_emails == "yes")
  31.    {
  32.       enter_screens.gotoAndPlay("enter_email_only");
  33.       enter_screens.field_email.holder.gotoAndPlay("field");
  34.    }
  35.    else
  36.    {
  37.       if(high)
  38.       {
  39.          _root.eyeland_hs_currentmessage = _root.eyeland_hs_nonamemessage;
  40.       }
  41.       enter_screens.gotoAndPlay("message_only");
  42.    }
  43. }
  44. _root.eyeland_hs_nonamemessage = "You got a high score!\nClick Submit to record your score anonymously.";
  45. btn_submit._visible = false;
  46. btn_skip._visible = false;
  47. btn_scores._visible = false;
  48. btn_scores._y = btn_submit._y;
  49. btn_playagain._visible = false;
  50. btn_playagain._y = btn_skip._y;
  51. btn_challenge._visible = false;
  52. btn_challenge._y = btn_skip._y;
  53. if(_root.eyeland_hs_result == "yes")
  54. {
  55.    show_prompt(true);
  56. }
  57. else if(_root.eyeland_hs_harvest_all_emails == "yes")
  58. {
  59.    show_prompt(false);
  60. }
  61. else
  62. {
  63.    btn_scores._visible = true;
  64.    btn_playagain._visible = true;
  65.    if(_root.eyeland_hs_emailtofriend != "no")
  66.    {
  67.       btn_challenge._visible = true;
  68.    }
  69.    else
  70.    {
  71.       btn_scores._x += 50;
  72.       btn_playagain._x -= 50;
  73.    }
  74.    _root.eyeland_hs_currentmessage = _root.eyeland_hs_lowscoremessage.split("%").join(_root.eyeland_hs_lowscore);
  75.    enter_screens.gotoAndPlay("message_only");
  76. }
  77. stop();
  78.