# Focus on

**URL:** <https://forum.kirupa.com/t/focus-on/320560>\
**Category:** flash\
**Created:** [March 26, 2011, 11:55pm UTC](https://forum.kirupa.com/t/focus-on/320560 "2011-03-26T23:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katumi](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Katumi](https://forum.kirupa.com/u/Katumi)\
**Post date:** [March 26, 2011, 11:55pm UTC](https://forum.kirupa.com/t/focus-on/320560/1 "2011-03-26T23:55:00Z")

</div>

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:

```php
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!
