I’m making an application where i want the user to enter some text into a textfield. The textfield is inside a movieclip which is added dynamically to the stage when a button is clicked. As soon as the movieclip is added i want the user to be able to type in the textfield without having to click it. I’ve tried setting focus like this:
MC.TF.stage.focus = MC.TF;
MC.TF.setSelection(0, MC.TF.text.length);
Actually, i’ve tried several ways… the best result i was able to get is a big yellow box around the textfield, but i’m still not able to type in it! : /
The textfield is a editable TLF textfield if that is of any help.
Anyone know how to solve this? Thanks in advance! :thumb2:
Edit: Great, i messed up the title!