# Selection.setFocus problem

**URL:** <https://forum.kirupa.com/t/selection-setfocus-problem/131717>\
**Category:** Uncategorized\
**Created:** [December 18, 2004, 11:32pm UTC](https://forum.kirupa.com/t/selection-setfocus-problem/131717 "2004-12-18T23:32:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colag](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@colag](https://forum.kirupa.com/u/colag)\
**Post date:** [December 18, 2004, 11:32pm UTC](https://forum.kirupa.com/t/selection-setfocus-problem/131717/1 "2004-12-18T23:32:37Z")

</div>

hi,  
can anyone confirm that this particular method works in flash mx 2004 as i am attempting to apply focus to a textfield but with no success at all. i have even tried an absolute path from the root eg.

fldName.tabIndex = 0;  
fldEmail.tabIndex = 1;  
fldURL.tabIndex = 2;  
fldMessage.tabIndex = 3;  
Selection.setFocus("\_root.content\_mc.contact\_mc.form\_mc.fldName");

any help is greatly appreciated.  
Thanks,  
coLin
