home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / SheepTeroids.swf / scripts / frame_43 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  496 b   |  25 lines

  1. tempscore = score;
  2. score *= multiplier;
  3. totalscore += score;
  4. stop();
  5. name_txt.restrict = "A-Z 0-9.:\\-";
  6. name_txt.text = playerName;
  7. Selection.setFocus(name_txt);
  8. Selection.setSelection(name_txt.length,name_txt.length);
  9. ok_btn.onRelease = function()
  10. {
  11.    if(name_txt.length > 0)
  12.    {
  13.       _root.nextFrame();
  14.    }
  15. };
  16. ok_btn.onKeyDown = function()
  17. {
  18.    if(Key.getCode() == 13)
  19.    {
  20.       Key.removeListener(ok_btn);
  21.       this.onRelease();
  22.    }
  23. };
  24. Key.addListener(ok_btn);
  25.