# focusManager not working

**URL:** <https://forum.kirupa.com/t/focusmanager-not-working/115419>\
**Category:** Uncategorized\
**Created:** [July 8, 2004, 2:21pm UTC](https://forum.kirupa.com/t/focusmanager-not-working/115419 "2004-07-08T14:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [July 8, 2004, 2:21pm UTC](https://forum.kirupa.com/t/focusmanager-not-working/115419/1 "2004-07-08T14:21:12Z")

</div>

Hello,

I have some code and what it is doing is making both text fields wider. I would like the first one to be wider but only the second one to get wider when focused on…

```php

focusManager.setFocus(clientIDtxt)
onEnterFrame = function () {
	if (focusManager.getFocus() == clientIDtxt) {
		clientID._width = 130;
	}
	if (focusManager.getFocus() == clientPSWtxt) {
		clientPSW._width = 130;
	}
};

```

ive tried MM tut’s and searched kirupa/google… no luck.

Anyone have any suggestions?

~ Lacuna aka Seretha :love:
