# Selection.setFocus Selection.getFocus inputting from mc

**URL:** <https://forum.kirupa.com/t/selection-setfocus-selection-getfocus-inputting-from-mc/238075>\
**Category:** flash\
**Created:** [September 6, 2007, 11:01pm UTC](https://forum.kirupa.com/t/selection-setfocus-selection-getfocus-inputting-from-mc/238075 "2007-09-06T23:01:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neilmmm](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@neilmmm](https://forum.kirupa.com/u/neilmmm)\
**Post date:** [September 6, 2007, 11:01pm UTC](https://forum.kirupa.com/t/selection-setfocus-selection-getfocus-inputting-from-mc/238075/1 "2007-09-06T23:01:04Z")

</div>

i am attaching a number of \_mc (my\_mc) with a for loop. Inside each my\_mc is an input textfield (my\_txt)

I want to click on my\_mc.my\_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a \_mc keybooard on screen (here called myBtn\_mc).

As soon as I click on myBtn\_mc of course I lose focus … i have tried to use a variable (select) to keep scope&focus … I keep focus but can not add text via screen \_mc

many thanks Neil
