3 Replies Latest reply on Jul 15, 2007 9:20 PM by Rothrock

    Setting focus to input text box

      I'm using MX 2004 and building a simple game where users input numbers into a dynamic text box. To limit the number of mouse clicks, I am wanting to set the focus to the input box when that screen/page loads. Right now, one has to click the input text box field, then enter their choice, then click the submit button. I'd just like them to type first, then click the submit button.

      I've set a variable to the input text box as 'answer_box'

      I thought I recall a 'setFocus' or an 'onFocus' in ActionScript once before but I can't find an example.

      Any help would be great!