Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetFocus upon Frame Entry 1

Status
Not open for further replies.

TulsaJeff

Programmer
Jan 29, 2001
870
US
I know how to get the tab key to make the focus jump from one dynamic text box to the next but what I need is for one of the boxes to be already selected and the cursor blinking when the user gets to the frame. this would allow them to start typing in the info without having to select anything first.

I have tried
Code:
Selection.setFocus("dynamictextbox");
on a clipEvent, within a keyframe and on a button but nothing seems to work.

Does anyone have an example of some actionscript where this is working? Ya' Gotta Love It!
sleepyangelsBW.jpg
 
On the clip itself holding an input textbox:

onClipEvent (load) {
Selection.setFocus("varText");
}

Will set focus to an input textbox with a variable named varText.

On the main movie's timeline, the following would do the same in a movie clip named mc_Text:

Selection.setFocus("mc_Text.varText");

Regards,

new.gif
 
I was sure I had tried that but I will try again... thanks! Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top